From 778bc3af631b689d40bad37814311be7245c4abe Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Wed, 16 Sep 2020 22:46:37 +1000 Subject: [PATCH] curve bug fix --- contracts/logics/exchangeRate/ethLogic.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/logics/exchangeRate/ethLogic.sol b/contracts/logics/exchangeRate/ethLogic.sol index c2486a4..cc7596c 100644 --- a/contracts/logics/exchangeRate/ethLogic.sol +++ b/contracts/logics/exchangeRate/ethLogic.sol @@ -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); } }