# IFSushiKitchen









## Methods

### addPool

```solidity
function addPool(uint256 pid) external nonpayable
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |

### checkpoint

```solidity
function checkpoint(uint256 pid) external nonpayable
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |

### flashStrategyFactory

```solidity
function flashStrategyFactory() external view returns (address)
```






#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |

### relativeWeight

```solidity
function relativeWeight(uint256 pid) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### relativeWeightAt

```solidity
function relativeWeightAt(uint256 pid, uint256 timestamp) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |
| timestamp | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### totalWeightPoints

```solidity
function totalWeightPoints() external view returns (uint256)
```






#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### totalWeightPointsAt

```solidity
function totalWeightPointsAt(uint256 timestamp) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| timestamp | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### totalWeightPointsLength

```solidity
function totalWeightPointsLength() external view returns (uint256)
```






#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### updateWeight

```solidity
function updateWeight(uint256 pid, uint256 points) external nonpayable
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |
| points | uint256 | undefined |

### weightPoints

```solidity
function weightPoints(uint256 pid) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### weightPointsAt

```solidity
function weightPointsAt(uint256 pid, uint256 timestamp) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |
| timestamp | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |

### weightPointsLength

```solidity
function weightPointsLength(uint256 pid) external view returns (uint256)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid | uint256 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | uint256 | undefined |



## Events

### AddPool

```solidity
event AddPool(uint256 indexed pid)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid `indexed` | uint256 | undefined |

### UpdateWeight

```solidity
event UpdateWeight(uint256 indexed pid, uint256 weightPoints, uint256 totalWeightPoints)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| pid `indexed` | uint256 | undefined |
| weightPoints  | uint256 | undefined |
| totalWeightPoints  | uint256 | undefined |



## Errors

### InvalidPid

```solidity
error InvalidPid()
```







