mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Added setId in deposit and withdraw
This commit is contained in:
parent
aef8da7a1f
commit
6adb05a159
|
@ -163,6 +163,8 @@ contract CurveProtocol is CurveHelpers {
|
|||
|
||||
uint mintAmt = sub(finalCurveBal, initialCurveBal);
|
||||
|
||||
setUint(setId, mintAmt);
|
||||
|
||||
emit LogDeposit(token, _amt, mintAmt, getId, setId);
|
||||
bytes32 _eventCode = keccak256("LogDeposit(address,uint256,uint256,uint256,uint256)");
|
||||
bytes memory _eventParam = abi.encode(_amt, mintAmt, getId, setId);
|
||||
|
@ -196,6 +198,8 @@ contract CurveProtocol is CurveHelpers {
|
|||
|
||||
curveZap.remove_liquidity_one_coin(_curveAmt, tokenId, _amt);
|
||||
|
||||
setUint(setId, _curveAmt);
|
||||
|
||||
emit LogWithdraw(token, _amt, _curveAmt, getId, setId);
|
||||
bytes32 _eventCode = keccak256("LogWithdraw(address,uint256,uint256,uint256,uint256)");
|
||||
bytes memory _eventParam = abi.encode(token, _amt, _curveAmt, getId, setId);
|
||||
|
|
Loading…
Reference in New Issue
Block a user