Basic Issuance
BasicIssuanceModule.sol
Module that enables issuance and redemption functionality on a SetToken. This is a module that is required to bring the totalSupply of a Set above 0.
issue
Deposits the SetToken's position components into the SetToken and mints the SetToken of the given quantity to the specified _to address.
_setToken Instance of the SetToken contract
_quantity Quantity of the SetToken to mint
_to Address to mint SetToken to
redeem
Redeems the SetToken's positions and sends the components of the given quantity to the caller.
_setToken Instance of the SetToken contract
_quantity Quantity of the SetToken to redeem
_to Address to send component assets to
initialize
Initializes this module to the SetToken with issuance-related hooks. Hooks are like callbacks that are called after issuance. Only callable by the SetToken's manager. Hook addresses are optional. Address(0) means that no hook will be called. This function is a must call after SetToken creation in order to enable the module to operate on it.
_setToken Instance of the SetToken to issue
_preIssueHook Instance of the Manager Contract with the Pre-Issuance Hook function
Last updated