IVirtualCollateralSupplyBase_v1.sol
Functions
setVirtualCollateralSupply
Sets the virtual collateral supply to a new value.
This function should call the internal function _setVirtualCollateralSupply
. 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 collateral supply.
getVirtualCollateralSupply
Returns the current virtual collateral supply.
This function returns the virtual supply by calling the internal _getVirtualCollateralSupply
function.
Returns
<none>
uint256
The current virtual collateral supply as a uint.
Events
VirtualCollateralSupplySet
Event emitted when virtual collateral supply has been set.
VirtualCollateralAmountAdded
Event emitted when virtual collateral amount has been added.
VirtualCollateralAmountSubtracted
Event emitted when virtual collateral amount has been subtracted.
Errors
Module__VirtualCollateralSupplyBase__VirtualSupplyCannotBeZero
The virtual supply cannot be zero.
Module__VirtualCollateralSupplyBase__SubtractResultsInUnderflow
Module__VirtualCollateralSupplyBase__AddResultsInOverflow
Adding would result in and overflow.
Last updated