Last updated
Last updated
Sets the virtual issuance supply to a new value.
This function calls the internal function _setVirtualIssuanceSupply
. The function must be implemented by the downstream contract. The downstream contract should manage access control for setting the supply.
Parameters
Returns the current virtual issuance supply.
This function returns the virtual supply by calling the internal _getVirtualIssuanceSupply
function.
Returns
Event emitted when virtual issuance supply has been set.
Parameters
Event emitted when virtual issuance amount has been added.
Parameters
Event emitted when virtual issuance amount has ben subtracted.
Parameters
The virtual supply cannot be zero.
Subtracting would result in an underflow.
Adding would result in and overflow.
newSupply
uint256
The new virtual issuance supply.
oldSupply
uint256
The old virtual issuance supply.
amountAdded
uint256
The amount added to the virtual issuance supply.
newSupply
uint256
The new virtual issuance supply.
amountSubtracted
uint256
The amount subtracted from the virtual issuance supply.
newSupply
uint256
The new virtual issuance supply.
_virtualSupply
uint256
The new value to set for the virtual issuance supply.
<none>
uint256
The current virtual issuance supply as a uint.