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.

52 lines (28 loc) 1.21 kB
# IFlashProtocol_ ## Methods ### stake ```solidity function stake(address _strategyAddress, uint256 _tokenAmount, uint256 _stakeDuration, address _fTokensTo, bool _issueNFT) external nonpayable returns (address stakerAddress, address strategyAddress, uint256 stakeStartTs, uint256 stakeDuration, uint256 stakedAmount, bool active, uint256 nftId, uint256 fTokensToUser, uint256 fTokensFee, uint256 totalFTokenBurned, uint256 totalStakedWithdrawn) ``` #### Parameters | Name | Type | Description | |---|---|---| | _strategyAddress | address | undefined | | _tokenAmount | uint256 | undefined | | _stakeDuration | uint256 | undefined | | _fTokensTo | address | undefined | | _issueNFT | bool | undefined | #### Returns | Name | Type | Description | |---|---|---| | stakerAddress | address | undefined | | strategyAddress | address | undefined | | stakeStartTs | uint256 | undefined | | stakeDuration | uint256 | undefined | | stakedAmount | uint256 | undefined | | active | bool | undefined | | nftId | uint256 | undefined | | fTokensToUser | uint256 | undefined | | fTokensFee | uint256 | undefined | | totalFTokenBurned | uint256 | undefined | | totalStakedWithdrawn | uint256 | undefined |