Skip to content

Commit

Permalink
Merge pull request #141 from jac0x/main
Browse files Browse the repository at this point in the history
Secta Finance: Dex: fix error - skip empty v2 pools
  • Loading branch information
nitish-91 authored May 17, 2024
2 parents 9c237b5 + 2364509 commit 00d8525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adapters/secta/src/sdk/poolDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const getV2LpValue = async (rpc: string, pairs: V2Pair[], mintedAddresses
);
const userLpBalance = new BigNumber(userLpBalanceBigInt.toString());

if (pair.totalSupply == 0) continue;

const totalSupply = new BigNumber(pair.totalSupply);

const userShare = userLpBalance.dividedBy(totalSupply);
Expand Down

0 comments on commit 00d8525

Please sign in to comment.