UNPKG

@mstable/protocol

Version:
372 lines (371 loc) 7.18 kB
[ { "inputs": [], "name": "collectInterest", "outputs": [ { "internalType": "uint256", "name": "swapFeesGained", "type": "uint256" }, { "internalType": "uint256", "name": "newTotalSupply", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "collectPlatformInterest", "outputs": [ { "internalType": "uint256", "name": "interestGained", "type": "uint256" }, { "internalType": "uint256", "name": "newTotalSupply", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "forgeValidator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBasketManager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_quantity", "type": "uint256" } ], "name": "getSwapOutput", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "output", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_basset", "type": "address" }, { "internalType": "uint256", "name": "_bassetQuantity", "type": "uint256" } ], "name": "mint", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_bAssets", "type": "address[]" }, { "internalType": "uint256[]", "name": "_bassetQuantity", "type": "uint256[]" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "mintMulti", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_basset", "type": "address" }, { "internalType": "uint256", "name": "_bassetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "mintTo", "outputs": [ { "internalType": "uint256", "name": "massetMinted", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_basset", "type": "address" }, { "internalType": "uint256", "name": "_bassetQuantity", "type": "uint256" } ], "name": "redeem", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_mAssetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemMasset", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_bAssets", "type": "address[]" }, { "internalType": "uint256[]", "name": "_bassetQuantities", "type": "uint256[]" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemMulti", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_basset", "type": "address" }, { "internalType": "uint256", "name": "_bassetQuantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "redeemTo", "outputs": [ { "internalType": "uint256", "name": "massetRedeemed", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_swapFee", "type": "uint256" } ], "name": "setSwapFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_input", "type": "address" }, { "internalType": "address", "name": "_output", "type": "address" }, { "internalType": "uint256", "name": "_quantity", "type": "uint256" }, { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "swap", "outputs": [ { "internalType": "uint256", "name": "output", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "swapFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_newForgeValidator", "type": "address" } ], "name": "upgradeForgeValidator", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]