@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.
335 lines (160 loc) • 4.14 kB
Markdown
# FSushiAirdrops
## Methods
### addAirdrop
```solidity
function addAirdrop(string name) external nonpayable
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| name | string | undefined |
### airdrops
```solidity
function airdrops(uint256) external view returns (string)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | string | undefined |
### claim
```solidity
function claim(uint256 id, uint256 amount, address beneficiary, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external nonpayable
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| id | uint256 | undefined |
| amount | uint256 | undefined |
| beneficiary | address | undefined |
| deadline | uint256 | undefined |
| v | uint8 | undefined |
| r | bytes32 | undefined |
| s | bytes32 | undefined |
### fSushi
```solidity
function fSushi() external view returns (address)
```
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### hasClaimed
```solidity
function hasClaimed(uint256, address) external view returns (bool)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |
| _1 | address | undefined |
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | bool | undefined |
### owner
```solidity
function owner() external view returns (address)
```
*Returns the address of the current owner.*
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | 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.*
### signer
```solidity
function signer() external view returns (address)
```
#### Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
### 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 |
### updateSigner
```solidity
function updateSigner(address _signer) external nonpayable
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| _signer | address | undefined |
## Events
### AddAirdrop
```solidity
event AddAirdrop(uint256 indexed id, string name)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| id `indexed` | uint256 | undefined |
| name | string | undefined |
### Claim
```solidity
event Claim(uint256 indexed id, string name, address indexed account, uint256 amount, address indexed beneficiary)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| id `indexed` | uint256 | undefined |
| name | string | undefined |
| account `indexed` | address | undefined |
| amount | uint256 | undefined |
| beneficiary `indexed` | address | undefined |
### OwnershipTransferred
```solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| previousOwner `indexed` | address | undefined |
| newOwner `indexed` | address | undefined |
### UpdateSigner
```solidity
event UpdateSigner(address indexed signer)
```
#### Parameters
| Name | Type | Description |
|---|---|---|
| signer `indexed` | address | undefined |
## Errors
### Claimed
```solidity
error Claimed()
```
### Expired
```solidity
error Expired()
```
### InvalidId
```solidity
error InvalidId()
```
### InvalidName
```solidity
error InvalidName()
```
### InvalidSignature
```solidity
error InvalidSignature()
```
### NotEOA
```solidity
error NotEOA()
```