UNPKG

@mstable/protocol

Version:
306 lines (305 loc) 5.85 kB
[ { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" } ], "name": "balanceOfUnderlying", "outputs": [ { "internalType": "uint256", "name": "underlying", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "creditBalances", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_credits", "type": "uint256" } ], "name": "creditsToUnderlying", "outputs": [ { "internalType": "uint256", "name": "underlying", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "depositInterest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_underlying", "type": "uint256" }, { "internalType": "address", "name": "_beneficiary", "type": "address" }, { "internalType": "address", "name": "_referrer", "type": "address" } ], "name": "depositSavings", "outputs": [ { "internalType": "uint256", "name": "creditsIssued", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "address", "name": "_beneficiary", "type": "address" } ], "name": "depositSavings", "outputs": [ { "internalType": "uint256", "name": "creditsIssued", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "depositSavings", "outputs": [ { "internalType": "uint256", "name": "creditsIssued", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "exchangeRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "redeem", "outputs": [ { "internalType": "uint256", "name": "massetReturned", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "bool", "name": "_isCreditAmt", "type": "bool" }, { "internalType": "uint256", "name": "_minAmountOut", "type": "uint256" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "address", "name": "_beneficiary", "type": "address" }, { "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "bool", "name": "_isBassetOut", "type": "bool" } ], "name": "redeemAndUnwrap", "outputs": [ { "internalType": "uint256", "name": "creditsBurned", "type": "uint256" }, { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" }, { "internalType": "uint256", "name": "outputQuantity", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "redeemCredits", "outputs": [ { "internalType": "uint256", "name": "underlyingReturned", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "redeemUnderlying", "outputs": [ { "internalType": "uint256", "name": "creditsBurned", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "underlying", "outputs": [ { "internalType": "contract IERC20", "name": "underlyingMasset", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_underlying", "type": "uint256" } ], "name": "underlyingToCredits", "outputs": [ { "internalType": "uint256", "name": "credits", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]