UNPKG

@mstable/protocol

Version:
125 lines (124 loc) 2.43 kB
[ { "inputs": [ { "internalType": "address", "name": "_masset", "type": "address" }, { "internalType": "bool", "name": "_inputIsCredit", "type": "bool" }, { "internalType": "address", "name": "_output", "type": "address" } ], "name": "getIsBassetOut", "outputs": [ { "internalType": "bool", "name": "isBassetOut", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_isBassetOut", "type": "bool" }, { "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "bool", "name": "_inputIsCredit", "type": "bool" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "getUnwrapOutput", "outputs": [ { "internalType": "uint256", "name": "output", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_isBassetOut", "type": "bool" }, { "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_minAmountOut", "type": "uint256" }, { "internalType": "address", "name": "_beneficiary", "type": "address" } ], "name": "unwrapAndSend", "outputs": [ { "internalType": "uint256", "name": "outputQuantity", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]