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: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com>
This commit is contained in:
parent
0b757d9cd7
commit
9cd3cec75c
|
@ -33,7 +33,7 @@ abstract contract ConnextResolver is Helpers {
|
|||
bool isNative = params.asset == ethAddr;
|
||||
|
||||
if (isNative) {
|
||||
_amount = _amount == uint256(-1) ? sub(address(this).balance, params.relayerFee) : _amount;
|
||||
_amount = _amount == uint256(-1) ? address(this).balance : _amount;
|
||||
params.asset = wethAddr;
|
||||
tokenContract = TokenInterface(params.asset);
|
||||
// xcall does not take native asset, must wrap
|
||||
|
|
Loading…
Reference in New Issue
Block a user