Update contracts/polygon/connectors/limitOrder/helpers.sol

Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com>
This commit is contained in:
Shriya Tyagi 2022-03-04 03:35:17 +05:30 committed by GitHub
parent b69d0df412
commit feca05639e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_);
}
{