@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.
314 lines (152 loc) • 4.14 kB
Markdown
# FlashStrategySushiSwapFactory
## 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)
```
fee recipient
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### flashProtocol
```solidity
function flashProtocol() external view returns (address)
```
address of FlashProtocol
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### flpTokenFactory
```solidity
function flpTokenFactory() external view returns (address)
```
address of FarmingLPTokenFactory
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### getFlashStrategySushiSwap
```solidity
function getFlashStrategySushiSwap(uint256) external view returns (address)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### owner
```solidity
function owner() external view returns (address)
```
*Returns the address of the current owner.*
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### predictFlashStrategySushiSwapAddress
```solidity
function predictFlashStrategySushiSwapAddress(uint256 pid) external view returns (address token)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |
#### Returns
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
### renounceOwnership
```solidity
function renounceOwnership() external nonpayable
```
*Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.*
### transferOwnership
```solidity
function transferOwnership(address newOwner) external nonpayable
```
*Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.*
#### Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | 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 |
### OwnershipTransferred
```solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| previousOwner `indexed` | address | undefined |
| newOwner `indexed` | 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()
```