Interest and Fees

The Interest and Fees component handles fee calculations and interest accumulation.

Action
Description
Function

Update Fees

Force interest accumulation update

updateFeeAccumulator()

Calculate Interest

Calculate interest on a position

Internal operation, automatic

Example: Get Origination Fee

// Get the origination fee percentage for a vault
uint256 originationFee = IVault(vaultAddress).getOriginationFee();

// Calculate the fee amount for a specific mint amount
uint256 feeAmount = (mintAmount * originationFee) / 10000; // Fee is in basis points

Last updated