Skip to content

Commit

Permalink
Storing fbeets poolId with balances
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Jan 26, 2024
1 parent 440d548 commit 6d916b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/user/lib/user-sync-wallet-balance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export class UserSyncWalletBalanceService {
return AllNetworkConfigs['250'].data.fbeets!.address;
}

get fbeetsPoolId() {
return AllNetworkConfigs['250'].data.fbeets!.poolId;
}

get provider() {
return AllNetworkConfigs[this.chainId].provider;
}
Expand Down Expand Up @@ -311,8 +315,9 @@ export class UserSyncWalletBalanceService {
tokenAddress: this.fbeetsAddress,
balance,
balanceNum: parseFloat(balance),
poolId: this.fbeetsPoolId,
},
update: { balance: balance, balanceNum: parseFloat(balance) },
update: { balance: balance, balanceNum: parseFloat(balance), poolId: this.fbeetsPoolId },
});
}

Expand Down

0 comments on commit 6d916b0

Please sign in to comment.