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.

253 lines (117 loc) 2.89 kB
# IFlashStrategySushiSwapFactory ## Methods ### createFlashStrategySushiSwap ```solidity function createFlashStrategySushiSwap(uint256 pid) external nonpayable returns (address strategy) ``` #### Parameters | Name | Type | Description | |---|---|---| | pid | uint256 | undefined | #### Returns | Name | Type | Description | |---|---|---| | strategy | address | undefined | ### feeRecipient ```solidity function feeRecipient() external view returns (address) ``` #### Returns | Name | Type | Description | |---|---|---| | _0 | address | undefined | ### flashProtocol ```solidity function flashProtocol() external view returns (address) ``` #### Returns | Name | Type | Description | |---|---|---| | _0 | address | undefined | ### flpTokenFactory ```solidity function flpTokenFactory() external view returns (address) ``` #### Returns | Name | Type | Description | |---|---|---| | _0 | address | undefined | ### getFlashStrategySushiSwap ```solidity function getFlashStrategySushiSwap(uint256 pid) external view returns (address) ``` #### Parameters | Name | Type | Description | |---|---|---| | pid | uint256 | undefined | #### Returns | Name | Type | Description | |---|---|---| | _0 | address | undefined | ### predictFlashStrategySushiSwapAddress ```solidity function predictFlashStrategySushiSwapAddress(uint256 pid) external view returns (address strategy) ``` #### Parameters | Name | Type | Description | |---|---|---| | pid | uint256 | undefined | #### Returns | Name | Type | Description | |---|---|---| | strategy | address | undefined | ### updateFeeRecipient ```solidity function updateFeeRecipient(address _feeRecipient) external nonpayable ``` #### Parameters | Name | Type | Description | |---|---|---| | _feeRecipient | address | undefined | ## Events ### CreateFlashStrategySushiSwap ```solidity event CreateFlashStrategySushiSwap(uint256 pid, address strategy) ``` #### Parameters | Name | Type | Description | |---|---|---| | pid | uint256 | undefined | | strategy | address | undefined | ### UpdateFeeRecipient ```solidity event UpdateFeeRecipient(address feeRecipient) ``` #### Parameters | Name | Type | Description | |---|---|---| | feeRecipient | address | undefined | ### UpdateFlashStakeFeeBPS ```solidity event UpdateFlashStakeFeeBPS(uint256 fee) ``` #### Parameters | Name | Type | Description | |---|---|---| | fee | uint256 | undefined | ### UpdateStakeFeeBPS ```solidity event UpdateStakeFeeBPS(uint256 fee) ``` #### Parameters | Name | Type | Description | |---|---|---| | fee | uint256 | undefined | ## Errors ### FlashStrategySushiSwapCreated ```solidity error FlashStrategySushiSwapCreated() ``` ### InvalidFee ```solidity error InvalidFee() ``` ### InvalidFeeRecipient ```solidity error InvalidFeeRecipient() ```