Skip to content

IIInflationReceiver#

Internal interface for contracts that can receive inflation.

Functions#

getContractName#

Defined in IIInflationReceiver (Docs, Source).

function getContractName(
) external view returns (
    string);

Implement this function to allow updating inflation receiver contracts through AddressUpdater.

Returns Type Description
[0] string Contract name.

getExpectedBalance#

Defined in IIInflationReceiver (Docs, Source).

function getExpectedBalance(
) external view returns (
    uint256);

Returns the contract's expected balance (actual balance may be higher due to self-destruct funds).

Returns Type Description
[0] uint256 Expected native token balance.

getInflationAddress#

Defined in IIInflationReceiver (Docs, Source).

function getInflationAddress(
) external returns (
    address);

Returns the address of the Inflation contract.

receiveInflation#

Defined in IIInflationReceiver (Docs, Source).

function receiveInflation(
) external payable;

Receive native tokens from inflation.

setDailyAuthorizedInflation#

Defined in IIInflationReceiver (Docs, Source).

function setDailyAuthorizedInflation(
    uint256 _toAuthorizeWei
) external;

Notify the receiver that it is entitled to receive a new inflation amount.

Parameters Type Description
_toAuthorizeWei uint256 The amount of inflation that can be awarded in the coming day, in wei.