UNPKG

@ensuro/swaplibrary

Version:

Solidity Library that implements swap using different plaforms with a homogeneneous interface

82 lines (81 loc) 2.17 kB
{ "_format": "hh-sol-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": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122087bb89ad4a78d9cb1c581a041617f25ca700f592191296755d343912cb2e172b64736f6c634300081c0033", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122087bb89ad4a78d9cb1c581a041617f25ca700f592191296755d343912cb2e172b64736f6c634300081c0033", "linkReferences": {}, "deployedLinkReferences": {} }