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); }