ZenMinter
Functions
constructor
Zen Reserve Stabilizer constructor
Parameters
Name | Type | Description |
---|---|---|
| address | Chi Core to reference |
| uint256 | the max inflation in ZEN circulating supply per year in basis points (1/10000) |
| address | the owner, capable of changing the zen minter address. |
| address | the zen treasury address used to exclude from circulating supply |
| address | the zen rewards dripper address used to exclude from circulating supply |
poke
update the rate limit per second and buffer cap
setRateLimitPerSecond
no-op, reverts. Prevent admin or governor from overwriting ideal rate limit
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
setBufferCap
no-op, reverts. Prevent admin or governor from overwriting ideal buffer cap
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
mint
mints ZEN to the target address, subject to rate limit
Parameters
Name | Type | Description |
---|---|---|
| address | the address to send ZEN to |
| uint256 | the amount of ZEN to send |
setZenTreasury
sets the new ZEN treasury address
Parameters
Name | Type | Description |
---|---|---|
| address |
setZenRewardsDripper
sets the new ZEN treasury rewards dripper
Parameters
Name | Type | Description |
---|---|---|
| address |
setMinter
changes the ZEN minter address
Parameters
Name | Type | Description |
---|---|---|
| address | the new minter address |
setAnnualMaxInflationBasisPoints
sets the max annual inflation relative to current supply
Parameters
Name | Type | Description |
---|---|---|
| uint256 | the new max inflation % denominated in basis points (1/10000) |
idealBufferCap
return the ideal buffer cap based on ZEN circulating supply
zenCirculatingSupply
return the ZEN supply, subtracting locked ZEN
totalSupply
alias for zenCirculatingSupply
for compatibility with ERC-20 standard for off-chain 3rd party sites
isPokeNeeded
return whether a poke is needed or not i.e. is buffer cap != ideal cap
_mint
Parameters
Name | Type | Description |
---|---|---|
| address | |
| uint256 |
_setAnnualMaxInflationBasisPoints
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
Last updated