Skip to content

Commit

Permalink
fix total deposited view (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorizen authored Jul 31, 2024
1 parent 2d647dd commit fd2e249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/composables/use-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export const usePool = (poolId: number) => {
const poolDataResponses = await Promise.all([
erc1967ProxyContract.value.providerBased.value.poolsData(poolId),
erc1967ProxyContract.value.providerBased.value.pools(poolId),
// eslint-disable-next-line max-len
erc1967ProxyContract.value.providerBased.value.totalDepositedInPublicPools(),
])

return {
Expand All @@ -122,7 +124,7 @@ export const usePool = (poolId: number) => {
rate: poolDataResponses[0].rate,
payoutStart: poolDataResponses[1].payoutStart,
rewardDecrease: poolDataResponses[1].rewardDecrease,
totalDeposited: poolDataResponses[0].totalVirtualDeposited,
totalDeposited: poolDataResponses[2],
withdrawLockPeriod: poolDataResponses[1].withdrawLockPeriod,
withdrawLockPeriodAfterStake:
poolDataResponses[1].withdrawLockPeriodAfterStake,
Expand Down

0 comments on commit fd2e249

Please sign in to comment.