mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/optimism/connectors/connext/main.sol
Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
parent
a22f47c6ae
commit
07395bf419
|
@ -30,7 +30,7 @@ abstract contract ConnextResolver is Helpers {
|
|||
{
|
||||
uint256 _amount = getUint(getId, params.amount);
|
||||
TokenInterface tokenContract = TokenInterface(params.asset);
|
||||
bool isNative = params.asset == wethAddr;
|
||||
bool isNative = params.asset == ethAddr;
|
||||
|
||||
if (isNative) {
|
||||
_amount = _amount == uint256(-1) ? sub(address(this).balance, params.relayerFee) : _amount;
|
||||
|
|
Loading…
Reference in New Issue
Block a user