Skip to main content

ZeroDistributor

Git Source

Inherits: IDistributor

Constants​

staking​

Getter function for the staking contract address.

IStaking public immutable staking;

Returns

NameTypeDescription
<none>addressaddress The staking contract address.

State Variables​

unlockRebase​

bool private unlockRebase;

Functions​

constructor​

constructor(address staking_);

Parameters

NameTypeDescription
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

NameTypeDescription
<none>uint256