UNPKG

@luckyfinance/core

Version:

Core contracts for the LuckySwap protocol

105 lines (104 loc) 2.36 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ISwapper", "sourceName": "contracts/alpine/GoldVeinPairMediumRiskV1.sol", "abi": [ { "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" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }