mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor edits
This commit is contained in:
parent
c0370a7b7a
commit
e186f7e174
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user