UNPKG

@soma-finance/core-contracts

Version:

SOMA Finance core contracts

92 lines 1.79 kB
[ { "inputs": [ { "internalType": "address", "name": "factory_", "type": "address" }, { "internalType": "contract ISomaSwapRouter", "name": "router_", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "router", "outputs": [ { "internalType": "contract ISomaSwapRouter", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint256", "name": "truePriceTokenA", "type": "uint256" }, { "internalType": "uint256", "name": "truePriceTokenB", "type": "uint256" }, { "internalType": "uint256", "name": "maxSpendTokenA", "type": "uint256" }, { "internalType": "uint256", "name": "maxSpendTokenB", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapToPrice", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]