Skip to content

Commit

Permalink
fix: steer point
Browse files Browse the repository at this point in the history
  • Loading branch information
xsteadybcgo committed Jul 30, 2024
1 parent 2dc2257 commit 07fbb28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/steer/execution/src/sdk/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getSteerProtocolVault = async (blockNumber: number): Promise<UserTV

const res = data.depositors.filter(item => allVaults.includes(item.vault.id)).map(depositData => {
const { account, shares, vault } = depositData
const { id, pool, token0, token1, totalAmount0, totalAmount1, totalLPTokensIssued } = vault
const { id, token0, token1, totalAmount0, totalAmount1, totalLPTokensIssued } = vault
const data0 = {
userAddress: account,
poolAddress: id,
Expand All @@ -60,7 +60,7 @@ export const getSteerProtocolVault = async (blockNumber: number): Promise<UserTV
}
const data1 = {
userAddress: account,
poolAddress: pool,
poolAddress: id,
tokenAddress: token1,
blockNumber: blockNumber,
balance: BigInt(totalAmount1) > 0 ? BigInt(shares) * BigInt(totalAmount1) / BigInt(totalLPTokensIssued) : BigInt(0),
Expand Down

0 comments on commit 07fbb28

Please sign in to comment.