IStaking
Functions
OHM
function OHM() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
sOHM
function sOHM() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
gOHM
function gOHM() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
index
function index() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
supplyInWarmup
function supplyInWarmup() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
rebase
function rebase() external returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
stake
function stake(
address to_,
uint256 amount_,
bool rebasing_,
bool claim_
) external returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
| to_ | address | |
| amount_ | uint256 | |
| rebasing_ | bool | |
| claim_ | bool |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
unstake
function unstake(
address to_,
uint256 amount_,
bool trigger_,
bool rebasing_
) external returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
| to_ | address | |
| amount_ | uint256 | |
| trigger_ | bool | |
| rebasing_ | bool |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
setDistributor
function setDistributor(address _distributor) external;
Parameters
| Name | Type | Description |
|---|---|---|
| _distributor | address |
secondsToNextEpoch
function secondsToNextEpoch() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
epoch
function epoch() external view returns (uint256, uint256, uint256, uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 | |
| <none> | uint256 | |
| <none> | uint256 | |
| <none> | uint256 |
Structs
Epoch
struct Epoch {
uint256 length;
uint256 number;
uint256 end;
uint256 distribute;
}
Properties
| Name | Type | Description |
|---|---|---|
| length | uint256 | |
| number | uint256 | |
| end | uint256 | |
| distribute | uint256 |