From fbf6417621e194d04471f7ed5e16cbe194c75266 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 2 Dec 2024 17:44:08 +0100 Subject: [PATCH] Change multi call contract address --- mooncontracts/baseline.sol | 5 ++++- mooncontracts/splitReceiver.sol | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mooncontracts/baseline.sol b/mooncontracts/baseline.sol index 6ee15a6e..8cf0cfb1 100644 --- a/mooncontracts/baseline.sol +++ b/mooncontracts/baseline.sol @@ -8,6 +8,9 @@ contract ReceiveCrossChainXToken { address constant public axlUSDCAddress = 0xCa01a1D0993565291051daFF390892518ACfAD3A; IERC20 constant axlUSDC = IERC20(axlUSDCAddress); + + address constant public squidRouterMultiCallContract = 0xaD6Cea45f98444a922a2b4fE96b8C90F0862D2F4; + Xtokens constant xt = Xtokens(0x0000000000000000000000000000000000000804); event ReceiveBalance(uint256 balance); @@ -38,7 +41,7 @@ contract ReceiveCrossChainXToken { function transferApprovedTokensToSelf(uint256 amount) internal { IERC20 token = IERC20(axlUSDCAddress); - bool success = token.transferFrom(0xEa749Fd6bA492dbc14c24FE8A3d08769229b896c, address(this), amount); + bool success = token.transferFrom(squidRouterMultiCallContract, address(this), amount); require(success, "Transfer failed"); } } diff --git a/mooncontracts/splitReceiver.sol b/mooncontracts/splitReceiver.sol index 66bc7de9..22eb7363 100644 --- a/mooncontracts/splitReceiver.sol +++ b/mooncontracts/splitReceiver.sol @@ -8,6 +8,9 @@ contract ReceiveCrossChainXToken { address constant public axlUSDCAddress = 0xCa01a1D0993565291051daFF390892518ACfAD3A; IERC20 constant axlUSDC = IERC20(axlUSDCAddress); + + address constant public squidRouterMultiCallContract = 0xaD6Cea45f98444a922a2b4fE96b8C90F0862D2F4; + Xtokens constant xt = Xtokens(0x0000000000000000000000000000000000000804); event ReceiveBalance(uint256 balance); @@ -22,7 +25,7 @@ contract ReceiveCrossChainXToken { ) public { require(amount > 0, "Amount cannot be zero"); require(xcmDataMapping[hash] == 0, "Hash already used"); - + xcmDataMapping[hash] = amount; transferApprovedTokensToSelf(amount); @@ -52,7 +55,7 @@ contract ReceiveCrossChainXToken { function transferApprovedTokensToSelf(uint256 amount) internal { IERC20 token = IERC20(axlUSDCAddress); - bool success = token.transferFrom(0xEa749Fd6bA492dbc14c24FE8A3d08769229b896c, address(this), amount); + bool success = token.transferFrom(squidRouterMultiCallContract, address(this), amount); require(success, "Transfer failed"); } }