@ensuro/swaplibrary
Version:
Solidity Library that implements swap using different plaforms with a homogeneneous interface
463 lines • 10.6 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "ICurveRouter",
"sourceName": "contracts/dependencies/ICurveRouter.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"internalType": "address[11]",
"name": "route",
"type": "address[11]"
},
{
"indexed": false,
"internalType": "uint256[5][5]",
"name": "swap_params",
"type": "uint256[5][5]"
},
{
"indexed": false,
"internalType": "address[5]",
"name": "pools",
"type": "address[5]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "in_amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "out_amount",
"type": "uint256"
}
],
"name": "Exchange",
"type": "event"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_expected",
"type": "uint256"
}
],
"name": "exchange",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_expected",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
}
],
"name": "exchange",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_expected",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
},
{
"internalType": "address",
"name": "_receiver",
"type": "address"
}
],
"name": "exchange",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_out_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_tokens",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_second_base_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_second_base_tokens",
"type": "address[5]"
}
],
"name": "get_dx",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_out_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_pools",
"type": "address[5]"
}
],
"name": "get_dx",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_out_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_tokens",
"type": "address[5]"
}
],
"name": "get_dx",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_out_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
}
],
"name": "get_dx",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_out_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_pools",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_base_tokens",
"type": "address[5]"
},
{
"internalType": "address[5]",
"name": "_second_base_pools",
"type": "address[5]"
}
],
"name": "get_dx",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address[5]",
"name": "_pools",
"type": "address[5]"
}
],
"name": "get_dy",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[11]",
"name": "_route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "_swap_params",
"type": "uint256[5][5]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "get_dy",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
"inputSourceName": "project/contracts/dependencies/ICurveRouter.sol",
"buildInfoId": "solc-0_8_35-3c6720e352a8805a57f3d5d8111ba91dcd52bec9"
}