Update contracts/optimism/connectors/connext/main.sol

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
wanglonghong 2023-03-27 16:34:37 +08:00 committed by GitHub
parent a22f47c6ae
commit 07395bf419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;