UNPKG

@luckyfinance/core

Version:

Core contracts for the LuckySwap protocol

96 lines (95 loc) 1.93 kB
[ { "inputs": [ { "internalType": "contract IERC20", "name": "fromToken", "type": "address" }, { "internalType": "contract IERC20", "name": "toToken", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "shareToMin", "type": "uint256" }, { "internalType": "uint256", "name": "shareFrom", "type": "uint256" } ], "name": "swap", "outputs": [ { "internalType": "uint256", "name": "extraShare", "type": "uint256" }, { "internalType": "uint256", "name": "shareReturned", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC20", "name": "fromToken", "type": "address" }, { "internalType": "contract IERC20", "name": "toToken", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "address", "name": "refundTo", "type": "address" }, { "internalType": "uint256", "name": "shareFromSupplied", "type": "uint256" }, { "internalType": "uint256", "name": "shareToExact", "type": "uint256" } ], "name": "swapExact", "outputs": [ { "internalType": "uint256", "name": "shareUsed", "type": "uint256" }, { "internalType": "uint256", "name": "shareReturned", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]