UNPKG

@ohgeez/fsushi

Version:

fSUSHI is a protocol built on top of [FlashStake](http://flashstake.io/) and [SushiSwap](https://sushi.com) that enables stakers to get instant, upfront yield without waiting for it to accrue.

197 lines (196 loc) 3.68 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_address", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_yieldReturned", "type": "uint256" } ], "name": "BurnedFToken", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" }, { "internalType": "uint256", "name": "_minimumReturned", "type": "uint256" }, { "internalType": "address", "name": "_yieldTo", "type": "address" } ], "name": "burnFToken", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" } ], "name": "depositPrincipal", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getMaxStakeDuration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPrincipalAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPrincipalBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getYieldBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" } ], "name": "quoteBurnFToken", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" }, { "internalType": "uint256", "name": "duration", "type": "uint256" } ], "name": "quoteMintFToken", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_fTokenAddress", "type": "address" } ], "name": "setFTokenAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" } ], "name": "withdrawPrincipal", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]