StreamingFeeModule

Smart contract that accrues streaming fees for Set managers. Streaming fees are denominated as percent per year and realized as Set inflation rewarded to the manager.

Select Methods

accrueFee()

function accrueFee(ISetToken _setToken)

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.

initialize()

function initialize(ISetToken _setToken, FeeState memory _settings)

Manager only. Initializes this module to the SetToken.

The FeeState struct is constructed as follows:

struct FeeState {
    address feeRecipient;                   // Address to accrue fees to
    uint256 maxStreamingFeePercentage;      // Max streaming fee maanager commits to using (1% = 1e16, 100% = 1e18)
    uint256 streamingFeePercentage;         // Percent of Set accruing to manager annually (1% = 1e16, 100% = 1e18)
    uint256 lastStreamingFeeTimestamp;      // Timestamp last streaming fee was accrued
}                                                  

updateStreamingFee()

function updateStreamingFee(ISetToken _setToken, uint256 _newFee)

Manager only. 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.

updateFeeRecipient()

function updateFeeRecipient(ISetToken _setToken, address _newFeeRecipient)

Manager only. Set new fee recipient.

Last updated