High-Water Mark (HWM)
uint256 public highWaterMark;
uint256 public constant TOTAL_FEE = 100; // 1%profit = totalAssets > highWaterMark ? totalAssets - highWaterMark : 0;
fee = profit * TOTAL_FEE / 10000;
managerFee = fee / 2;
platformFee = fee / 2;TVL
HWM
Profit
Fee
Last updated