From e186f7e1749dd6f21ee82a3c6eff371cb933c0b2 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Wed, 18 Aug 2021 02:47:25 +0530 Subject: [PATCH] minor edits --- .../mainnet/connectors/automated_defi_limit_order/main.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/mainnet/connectors/automated_defi_limit_order/main.sol b/contracts/mainnet/connectors/automated_defi_limit_order/main.sol index 987b8eb4..40859105 100644 --- a/contracts/mainnet/connectors/automated_defi_limit_order/main.sol +++ b/contracts/mainnet/connectors/automated_defi_limit_order/main.sol @@ -83,10 +83,13 @@ abstract contract CompResolver is Events, Helpers { string memory _eventName, bytes memory _eventParam ) { + sellAmt = getUint(getId, sellAmt); uint _slippageAmt = _calSlippageCheck(TokenInterface(buyAddr), TokenInterface(sellAddr), sellAmt, unitAmt); uint buyAmt = limitOrderContract.sell(sellAddr, buyAddr, sellAmt, _slippageAmt, _orderId, address(this)); + setUint(setId, buyAmt); + _eventName = "LogSell(address,address,uint256,uint256,uint256,uint256)"; _eventParam = abi.encode(buyAddr, sellAddr, buyAmt, sellAmt, 0, setId); }