Fixed typo

This commit is contained in:
Thrilok Kumar 2020-06-19 18:46:26 +05:30
parent eb7cb3d7d4
commit 237d8d857e

View File

@ -113,12 +113,11 @@ contract CurveProtocol is CurveHelpers {
uint _slippageAmt = convert18ToDec(_buyToken.decimals(), wmul(unitAmt, convertTo18(_sellToken.decimals(), _sellAmt)));
// uint _buyAmt = curve.get_dy(getTokenI(sellAddr), getTokenI(buyAddr), _sellAmt);
uint initalBal = _buyToken.balanceOf(address(this));
uint intialBal = _buyToken.balanceOf(address(this));
curve.exchange(getTokenI(sellAddr), getTokenI(buyAddr), _sellAmt, _slippageAmt);
uint finalBal = _buyToken.balanceOf(address(this));
uint _buyAmt = sub(finalBal, initalBal);
uint _buyAmt = sub(finalBal, intialBal);
setUint(setId, _buyAmt);