File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -357,22 +357,22 @@ def _byData(_data: address[3], _account: address) -> Lp:
357
357
token0: IERC20 = IERC20 (pool.token0 ())
358
358
token1: IERC20 = IERC20 (pool.token1 ())
359
359
gauge_alive: bool = self .voter.isAlive (gauge.address )
360
- decimals: uint256 = pool.decimals ()
360
+ decimals: uint8 = pool.decimals ()
361
361
claimable0: uint256 = 0
362
362
claimable1: uint256 = 0
363
363
acc_balance: uint256 = 0
364
364
365
- if account != empty (address ):
365
+ if _account != empty (address ):
366
366
acc_balance = pool.balanceOf (_account)
367
367
claimable0 = pool.claimable0 (_account)
368
368
claimable1 = pool.claimable1 (_account)
369
369
claimable_delta0: uint256 = pool.index0 () - pool.supplyIndex0 (_account)
370
370
claimable_delta1: uint256 = pool.index1 () - pool.supplyIndex1 (_account)
371
371
372
372
if claimable_delta0 > 0 :
373
- claimable0 += (acc_balance * claimable_delta0) / 10 ** decimals
373
+ claimable0 += (acc_balance * claimable_delta0) / 10 ** convert ( decimals, uint256 )
374
374
if claimable_delta1 > 0 :
375
- claimable1 += (acc_balance * claimable_delta1) / 10 ** decimals
375
+ claimable1 += (acc_balance * claimable_delta1) / 10 ** convert ( decimals, uint256 )
376
376
377
377
if gauge.address != empty (address ):
378
378
acc_staked = gauge.balanceOf (_account)
You can’t perform that action at this time.
0 commit comments