Fee Structure
Trading fee
tradingFeeBps = 100; // 1%Performance fee
feeBps = 0 ~ 3000; // max 30%function _calculatePerformanceFee(
address user,
uint256 tokens,
uint256 currentNav
) internal view returns (uint256 feeTokens) {
EntryRecord storage record = entryRecords[user];
if (currentNav <= record.weightedEntryNav) return 0;
uint256 profitPerToken = currentNav - record.weightedEntryNav;
uint256 totalProfit = (tokens * profitPerToken) / PRECISION;
uint256 fee = (totalProfit * feeBps) / BPS;
// paid as newly minted tokens to the leader
feeTokens = (fee * PRECISION) / currentNav;
}Exit fee
Holding duration
Fee
Protocol fee
Last updated