mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/polygon/connectors/limitOrder/helpers.sol
Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com>
This commit is contained in:
parent
b69d0df412
commit
feca05639e
|
@ -55,7 +55,7 @@ contract Helpers is Basic {
|
|||
} else {
|
||||
amountSend_ = params_.amount == type(uint128).max ? getTokenBal(TokenInterface(params_.token1)) : params_.amount;
|
||||
convertMaticToWmatic(address(token1_) == wmaticAddr, token1_, amountSend_);
|
||||
approve(TokenInterface(token1_), address(limitCon_), amountSend_);
|
||||
approve(token1_, address(limitCon_), amountSend_);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user