ZeroDistributor
Inherits: IDistributor
Constants
staking
Getter function for the staking contract address.
IStaking public immutable staking;
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address | address The staking contract address. |
State Variables
unlockRebase
bool private unlockRebase;
Functions
constructor
constructor(address staking_);
Parameters
| Name | Type | Description |
|---|---|---|
| staking_ | address |
triggerRebase
Trigger 0 rebase via distributor. There is an error in Staking's stake function which pulls forward part of the rebase for the next epoch. This path triggers a rebase by calling unstake (which does not have the issue). The patch also restricts distribute to only be able to be called from a tx originating in this function.
function triggerRebase() external;
distribute
Endpoint must be available for Staking to call. Zero emission.
function distribute() external;
retrieveBounty
Endpoint must be available for Staking to call. Zero emission.
function retrieveBounty() external pure returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |