IIInflationReceiver
#
Internal interface for contracts that can receive inflation.
Functions#
getContractName
#
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
#
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
#
function getInflationAddress(
) external returns (
address);
Returns the address of the Inflation
contract.
receiveInflation
#
function receiveInflation(
) external payable;
Receive native tokens from inflation.
setDailyAuthorizedInflation
#
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. |