curve bug fix

This commit is contained in:
Samyak Jain 2020-09-16 22:46:37 +10:00
parent 79d1c80d61
commit 778bc3af63

View File

@ -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);
}
}