IVirtualIssuanceSupplyBase_v1.sol
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
_virtualSupply
uint256
The new value to set for the virtual issuance supply.
Returns the current virtual issuance supply.
This function returns the virtual supply by calling the internal _getVirtualIssuanceSupply
function.
Returns
<none>
uint256
The current virtual issuance supply as a uint.
Event emitted when virtual issuance supply has been set.
Parameters
newSupply
uint256
The new virtual issuance supply.
oldSupply
uint256
The old virtual issuance supply.
Event emitted when virtual issuance amount has been added.
Parameters
amountAdded
uint256
The amount added to the virtual issuance supply.
newSupply
uint256
The new virtual issuance supply.
Event emitted when virtual issuance amount has ben subtracted.
Parameters
amountSubtracted
uint256
The amount subtracted from the virtual issuance supply.
newSupply
uint256
The new virtual issuance supply.
The virtual supply cannot be zero.
Subtracting would result in an underflow.
Adding would result in and overflow.