Skip to main content

IFeeManager

Git Source

Functions

calculateFixedFee

Calculates the fixed fee for a given share supply and elapsed time.

May update internal state related to fee accrual or realization.

function calculateFixedFee(uint256 shareSupply, uint256 elapsedTime) external returns (uint256);

Parameters

NameTypeDescription
shareSupplyuint256The total supply of shares.
elapsedTimeuint256The elapsed time since the last fee realization.

Returns

NameTypeDescription
<none>uint256fee The calculated fixed fee.

calculatePerformanceFee

Calculates the performance fee based on the share supply, share price performance and elapsed time.

May update internal state related to fee accrual or realization.

function calculatePerformanceFee(
uint256 currentShareSupply,
uint256 oldSharePrice,
uint256 newSharePrice,
uint256 elapsedTime
) external returns (uint256);

Parameters

NameTypeDescription
currentShareSupplyuint256The current total supply of shares.
oldSharePriceuint256The previous share price of reference.
newSharePriceuint256The new share price of reference.
elapsedTimeuint256The elapsed time since the last fee realization.

Returns

NameTypeDescription
<none>uint256fee The calculated performance fee.

distributeFees

Distributes the fees to relevant recipients.

function distributeFees(uint256 fixedFee, uint256 perfFee) external;

Parameters

NameTypeDescription
fixedFeeuint256The fixed fee amount to be distributed.
perfFeeuint256The performance fee amount to be distributed.