Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[
{
"inputs": [
{
"internalType": "contract IWardenPreTrade2",
"name": "_preTrade",
"type": "address"
},
{
"internalType": "contract IWETH",
"name": "_weth",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "partnerId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "contract IERC20",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "wallet",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "PartnerFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "contract IERC20",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "wallet",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ProtocolFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "srcAsset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "srcAmount",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "destAsset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "destAmount",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "trader",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "hasSplitted",
"type": "bool"
}
],
"name": "Trade",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "contract IWardenPreTrade2",
"name": "preTrade",
"type": "address"
}
],
"name": "UpdatedWardenPreTrade",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "collectRemainingEther",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "collectRemainingToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "preTrade",
"outputs": [
{
"internalType": "contract IWardenPreTrade2",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IWardenSwap2",
"name": "_swap",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"internalType": "address",
"name": "_deposits",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "_src",
"type": "address"
},
{
"internalType": "uint256",
"name": "_srcAmount",
"type": "uint256"
},
{
"internalType": "contract IERC20",
"name": "_dest",
"type": "address"
},
{
"internalType": "uint256",
"name": "_minDestAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_receiver",
"type": "address"
},
{
"internalType": "uint256",
"name": "_partnerId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_metaData",
"type": "uint256"
}
],
"name": "swap",
"outputs": [
{
"internalType": "uint256",
"name": "_destAmount",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IWardenSwap2",
"name": "_swap",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"internalType": "address[]",
"name": "_deposits",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_volumes",
"type": "uint256[]"
},
{
"internalType": "contract IERC20",
"name": "_src",
"type": "address"
},
{
"internalType": "uint256",
"name": "_totalSrcAmount",
"type": "uint256"
},
{
"internalType": "contract IERC20",
"name": "_dest",
"type": "address"
},
{
"internalType": "uint256",
"name": "_minDestAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_receiver",
"type": "address"
},
{
"internalType": "uint256",
"name": "_partnerId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_metaData",
"type": "uint256"
}
],
"name": "swapSplit",
"outputs": [
{
"internalType": "uint256",
"name": "_destAmount",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_receiver",
"type": "address"
}
],
"name": "tradeEthToWeth",
"outputs": [
{
"internalType": "uint256",
"name": "_destAmount",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_srcAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_receiver",
"type": "address"
}
],
"name": "tradeWethToEth",
"outputs": [
{
"internalType": "uint256",
"name": "_destAmount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IWardenPreTrade2",
"name": "_preTrade",
"type": "address"
}
],
"name": "updateWardenPreTrade",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "weth",
"outputs": [
{
"internalType": "contract IWETH",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment