Skip to main content

ZeroDistributor

Git Source

Inherits: IDistributor

State Variables​

staking​

IStaking public immutable staking

unlockRebase​

bool private unlockRebase

Functions​

constructor​

constructor(address staking_) ;

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);