mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
curve bug fix
This commit is contained in:
parent
79d1c80d61
commit
778bc3af63
|
@ -91,7 +91,7 @@ contract EthRateLogic is DSMath {
|
|||
uint virtualPrice = ICurve(curvePoolAddr).get_virtual_price();
|
||||
uint curveTokenBal = TokenInterface(curveTokenAddr).balanceOf(_dsa);
|
||||
uint amtInUSD = wmul(curveTokenBal, virtualPrice);
|
||||
uint amtInETH = wmul(amtInUSD, ethPriceUSD);
|
||||
uint amtInETH = wdiv(amtInUSD, ethPriceUSD);
|
||||
_netBal = add(_netBal, amtInETH);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user