@ensuro/swaplibrary
Version:
Solidity Library that implements swap using different plaforms with a homogeneneous interface
84 lines • 2.31 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "CurveRoutes",
"sourceName": "contracts/CurveRoutes.sol",
"abi": [
{
"inputs": [],
"name": "AtLeastOneRoute",
"type": "error"
},
{
"inputs": [],
"name": "CurveRouterCantBeZero",
"type": "error"
},
{
"inputs": [],
"name": "InvalidLength",
"type": "error"
},
{
"inputs": [
{
"components": [
{
"internalType": "address[11]",
"name": "route",
"type": "address[11]"
},
{
"internalType": "uint256[5][5]",
"name": "swapParams",
"type": "uint256[5][5]"
},
{
"internalType": "address[5]",
"name": "pools",
"type": "address[5]"
}
],
"internalType": "struct CurveRoutes.CurveRoute",
"name": "route",
"type": "tuple"
}
],
"name": "InvalidRoute",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
}
],
"name": "RouteNotFound",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "nSwaps",
"type": "uint8"
}
],
"name": "TooManySwaps",
"type": "error"
}
],
"bytecode": "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220b769a51117827d89715cdd25c1709f6e7ad04585d58fbd3eeef2c0a227f200f664736f6c63430008230033",
"deployedBytecode": "0x730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220b769a51117827d89715cdd25c1709f6e7ad04585d58fbd3eeef2c0a227f200f664736f6c63430008230033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
"inputSourceName": "project/contracts/CurveRoutes.sol",
"buildInfoId": "solc-0_8_35-3c6720e352a8805a57f3d5d8111ba91dcd52bec9"
}