UNPKG

@yearn-mechanics/yswaps

Version:

YSwaps will swap enabled strategie's funds from harvests

115 lines (114 loc) 2.44 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ISyncSwapper", "sourceName": "solidity/contracts/swappers/sync/SyncSwapper.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_tradeFactory", "type": "address" } ], "name": "TradeFactorySet", "type": "event" }, { "inputs": [], "name": "SLIPPAGE_PRECISION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SWAPPER_TYPE", "outputs": [ { "internalType": "enum ISwapper.SwapperType", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_tradeFactory", "type": "address" } ], "name": "setTradeFactory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "address", "name": "_tokenIn", "type": "address" }, { "internalType": "address", "name": "_tokenOut", "type": "address" }, { "internalType": "uint256", "name": "_amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "_maxSlippage", "type": "uint256" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "swap", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "tradeFactory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }