Skip to content

Commit 6024727

Browse files
committed
fix get bpt balance
1 parent 65b5173 commit 6024727

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integrations/balancer_v3_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def get_balance(self, user: str, block: int | str = "latest") -> float:
4040
Retrieve the balance of the user in the incentivized Ethena token.
4141
4242
This method calculates the user's token balance based on the share of Balancer Pool Tokens (BPTs)
43-
staked either directly in Balancer gauges or via Aura Finance.
4443
"""
44+
bpt_balance = get_user_balance(self.chain, user, self.pool_address, block)
4545
gauge_balance = (
4646
0
4747
if self.gauge_address is None
@@ -55,7 +55,7 @@ def get_balance(self, user: str, block: int | str = "latest") -> float:
5555

5656
bpt_supply = get_token_supply(self.chain, self.pool_address, block)
5757

58-
user_balance = gauge_balance + aura_balance
58+
user_balance = bpt_balance + gauge_balance + aura_balance
5959

6060
incentivized_token_balance = get_vault_v3_pool_token_balance(
6161
self.chain, self.pool_address, self.incentivized_token, block

0 commit comments

Comments
 (0)