Verified contractExactUNLICENSED
Receiver
Address0xff031cc2563988bc4afa29e2cd7bcc2d389900a5
- Balance
0 ETH
- Transactions
382
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- london
- License
- UNLICENSED
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 21,599,142
- Creation transaction
- 0x5d2e1926f9…8cc516c8dc
Read9
- approved(address) → (bool)
- bridgeAddress() → (address)
- funcBlackList(bytes4) → (bool)
- gasForReFund() → (uint256)
- keepers(address) → (bool)
- owner() → (address)
- pendingOwner() → (address)
- storedFailedSwap(bytes32) → (bytes32)
- wToken() → (address)
Write15
- acceptOwnership()
- editFuncBlackList(bytes4,bool)
- execSwap(bytes32,uint256,address,uint256,bytes,bytes,bytes)
- onReceived(bytes32,address,uint256,uint256,bytes,bytes)
- remoteCall(tuple,address,uint256) → (address,uint256)
- remoteSwap(address,uint256,uint256,tuple) → (address,uint256)
- renounceOwnership()
- rescueFunds(address,uint256)
- setAuthorization(address[],bool)
- setBridgeAddress(address) → (bool)
- setGasForReFund(uint256)
- setWToken(address)
- swapRescueFunds(bytes32,uint256,address,uint256,address,address,bytes,bytes)
- transferOwnership(address)
- updateKeepers(address,bool)
Events11
- Approve(address,bool)
- EditFuncBlackList(bytes4,bool)
- OwnershipTransferStarted(address,address)
- OwnershipTransferred(address,address)
- RemoteSwapAndCall(bytes32,address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes)
- SetBridgeAddress(address)
- SetGasForReFund(uint256)
- SetWrappedToken(address)
- SwapFailed(bytes32,uint256,address,address,uint256,address,uint256,bytes,bytes)
- SwapRescueFunds(bytes32,address,address,uint256,uint256,uint256,bytes)
- UpdateKeepers(address,bool)
Errors16
- BRIDGE_ONLY()
- CALL_BACK_FAIL()
- CALL_FUNC_BLACK_LIST()
- DATA_EMPTY()
- EMPTY()
- INVALID_EXEC_PARAM()
- NATIVE_VALUE_OVERSPEND()
- NOT_CONTRACT()
- NO_APPROVE()
- ONLY_KEEPER()
- RECEIVE_LOW()
- SELF_ONLY()
- SWAP_FAIL()
- SWAP_SAME_TOKEN()
- UNSUPPORT_DEX_TYPE()
- ZERO_ADDRESS()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_wToken",
"type": "address",
"internalType": "address"
},
{
"name": "_bridgeAddress",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "payable"
},
{
"name": "BRIDGE_ONLY",
"type": "error",
"inputs": []
},
{
"name": "CALL_BACK_FAIL",
"type": "error",
"inputs": []
},
{
"name": "CALL_FUNC_BLACK_LIST",
"type": "error",
"inputs": []
},
{
"name": "DATA_EMPTY",
"type": "error",
"inputs": []
},
{
"name": "EMPTY",
"type": "error",
"inputs": []
},
{
"name": "INVALID_EXEC_PARAM",
"type": "error",
"inputs": []
},
{
"name": "NATIVE_VALUE_OVERSPEND",
"type": "error",
"inputs": []
},
{
"name": "NOT_CONTRACT",
"type": "error",
"inputs": []
},
{
"name": "NO_APPROVE",
"type": "error",
"inputs": []
},
{
"name": "ONLY_KEEPER",
"type": "error",
"inputs": []
},
{
"name": "RECEIVE_LOW",
"type": "error",
"inputs": []
},
{
"name": "SELF_ONLY",
"type": "error",
"inputs": []
},
{
"name": "SWAP_FAIL",
"type": "error",
"inputs": []
},
{
"name": "SWAP_SAME_TOKEN",
"type": "error",
"inputs": []
},
{
"name": "UNSUPPORT_DEX_TYPE",
"type": "error",
"inputs": []
},
{
"name": "ZERO_ADDRESS",
"type": "error",
"inputs": []
},
{
"name": "Approve",
"type": "event",
"inputs": [
{
"name": "executor",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "flag",
"type": "bool",
"indexed": true,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "EditFuncBlackList",
"type": "event",
"inputs": [
{
"name": "_func",
"type": "bytes4",
"indexed": false,
"internalType": "bytes4"
},
{
"name": "flag",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferStarted",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RemoteSwapAndCall",
"type": "event",
"inputs": [
{
"name": "orderId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "receiver",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "target",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "originToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "swapToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "originAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "swapAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "callAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fromChain",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "toChain",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "from",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "SetBridgeAddress",
"type": "event",
"inputs": [
{
"name": "_bridgeAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "SetGasForReFund",
"type": "event",
"inputs": [
{
"name": "_gasForReFund",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetWrappedToken",
"type": "event",
"inputs": [
{
"name": "_wToken",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "SwapFailed",
"type": "event",
"inputs": [
{
"name": "_orderId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "_fromChain",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_srcToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_dscToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_receiver",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_minReceived",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "_from",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "_callData",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "SwapRescueFunds",
"type": "event",
"inputs": [
{
"name": "orderId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "receiver",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fromChain",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "toChain",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "from",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "UpdateKeepers",
"type": "event",
"inputs": [
{
"name": "_keeper",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "_flag",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "approved",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "bridgeAddress",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "editFuncBlackList",
"type": "function",
"inputs": [
{
"name": "_func",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "_flag",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "execSwap",
"type": "function",
"inputs": [
{
"name": "_orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "_fromChain",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_srcToken",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_from",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "_swapData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "_callbackData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "funcBlackList",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "gasForReFund",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "keepers",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "onReceived",
"type": "function",
"inputs": [
{
"name": "_orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "_srcToken",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_fromChain",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_from",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "_swapAndCall",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pendingOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "remoteCall",
"type": "function",
"inputs": [
{
"name": "_callbackParam",
"type": "tuple",
"components": [
{
"name": "target",
"type": "address",
"internalType": "address"
},
{
"name": "approveTo",
"type": "address",
"internalType": "address"
},
{
"name": "offset",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "extraNativeAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct SwapCall.CallbackParam"
},
{
"name": "_callToken",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
},
{
"name": "callAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "remoteSwap",
"type": "function",
"inputs": [
{
"name": "_srcToken",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_initBalance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapParam",
"type": "tuple",
"components": [
{
"name": "dstToken",
"type": "address",
"internalType": "address"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "leftReceiver",
"type": "address",
"internalType": "address"
},
{
"name": "minAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swaps",
"type": "tuple[]",
"components": [
{
"name": "dexType",
"type": "uint8",
"internalType": "enum SwapCall.DexType"
},
{
"name": "callTo",
"type": "address",
"internalType": "address"
},
{
"name": "approveTo",
"type": "address",
"internalType": "address"
},
{
"name": "fromAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "callData",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct SwapCall.SwapData[]"
}
],
"internalType": "struct SwapCall.SwapParam"
}
],
"outputs": [
{
"name": "dstToken",
"type": "address",
"internalType": "address"
},
{
"name": "dstAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "rescueFunds",
"type": "function",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setAuthorization",
"type": "function",
"inputs": [
{
"name": "_executors",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "_flag",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setBridgeAddress",
"type": "function",
"inputs": [
{
"name": "_bridgeAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "setGasForReFund",
"type": "function",
"inputs": [
{
"name": "_gasForReFund",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setWToken",
"type": "function",
"inputs": [
{
"name": "_wToken",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "storedFailedSwap",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "swapRescueFunds",
"type": "function",
"inputs": [
{
"name": "_orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "_fromChain",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_srcToken",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_dscToken",
"type": "address",
"internalType": "address"
},
{
"name": "_receiver",
"type": "address",
"internalType": "address"
},
{
"name": "_from",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "_callbackData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateKeepers",
"type": "function",
"inputs": [
{
"name": "_keeper",
"type": "address",
"internalType": "address"
},
{
"name": "_flag",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "wToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.