Streaming Fees
StreamingFeeModule.sol
accrueFee
Calculates total inflation percentage then mints new Sets to the fee recipient. Position units are then adjusted down (in magnitude) in order to ensure full collateralization. Callable by anyone.
_setToken Address of SetToken
initialize
Initialize module with SetToken and set the fee state for the SetToken. Passed _settings
will have lastStreamingFeeTimestamp
over-written.
_setToken Address of SetToken
_settings FeeState struct defining fee parameters
removeModule
Removes this module from the SetToken, via call by the SetToken. Manager's feeState is deleted. Fees are not accrued in case reason for removing module is related to fee accrual. Only callable by the SetToken's manager.
updateStreamingFee
Set new streaming fee. Fees accrue at current rate then new rate is set. Fees are accrued to prevent the manager from unfairly accruing a larger percentage. Only callable by the SetToken's manager.
_setToken Address of SetToken
_newFee New streaming fee 18 decimal precision
updateFeeRecipient
Set new fee recipient.
_setToken Address of SetToken
_newFeeRecipient New fee recipient
getFee
Calculates total inflation percentage in order to accrue fees to manager.
_setToken Address of SetToken
return uint256 Percent inflation of supply
Last updated