mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Fixed typo
This commit is contained in:
parent
eb7cb3d7d4
commit
237d8d857e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user