UNPKG

@yearn-mechanics/yswaps

Version:

YSwaps will swap enabled strategie's funds from harvests

232 lines (231 loc) 5.6 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ITradeFactoryExecutor", "sourceName": "solidity/contracts/TradeFactory/TradeFactoryExecutor.sol", "abi": [ { "inputs": [], "name": "InvalidAmountOut", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_receivedAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "_swapper", "type": "address" } ], "name": "AsyncTradeExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256[]", "name": "_receivedAmount", "type": "uint256[]" }, { "indexed": false, "internalType": "address", "name": "_swapper", "type": "address" } ], "name": "MultipleAsyncTradeExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_strategy", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_receivedAmount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "_swapper", "type": "address" } ], "name": "SyncTradeExecuted", "type": "event" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "_strategy", "type": "address" }, { "internalType": "address", "name": "_tokenIn", "type": "address" }, { "internalType": "address", "name": "_tokenOut", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_minAmountOut", "type": "uint256" } ], "internalType": "struct ITradeFactoryExecutor.AsyncTradeExecutionDetails", "name": "_tradeExecutionDetails", "type": "tuple" }, { "internalType": "address", "name": "_swapper", "type": "address" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "execute", "outputs": [ { "internalType": "uint256", "name": "_receivedAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "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": "struct ITradeFactoryExecutor.SyncTradeExecutionDetails", "name": "_tradeExecutionDetails", "type": "tuple" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "execute", "outputs": [ { "internalType": "uint256", "name": "_receivedAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "_strategy", "type": "address" }, { "internalType": "address", "name": "_tokenIn", "type": "address" }, { "internalType": "address", "name": "_tokenOut", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_minAmountOut", "type": "uint256" } ], "internalType": "struct ITradeFactoryExecutor.AsyncTradeExecutionDetails[]", "name": "_tradesExecutionDetails", "type": "tuple[]" }, { "internalType": "address", "name": "_swapper", "type": "address" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "execute", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }