This page covers the smart contract implementation details. See Glossary.
The 4 fee types
Railnet supports four distinct fee types, each calculated and applied at different points in the vehicle lifecycle.Performance fee (on earnings)
A fee charged on gains above the high water mark. You only collect when the strategy makes money.If the strategy loses value, no performance fees are collected until the share price recovers past the previous high water mark.
Management fee (time-based)
An annualized fee prorated by time elapsed since the last operation. Charged regardless of performance.Deposit fee (entry fee)
A fee charged when users deposit assets. Deducted from shares received during the unlock phase.Redeem fee (exit fee)
A fee charged when users redeem shares. Deducted from assets received during the unlock phase.When fees are applied
Fee recipients and distribution
Fees can be distributed to multiple recipients with configured percentage splits:Example configurations
- Hedge fund model
- Index fund model
- Active management
- Long-term capital
Configuration
Prerequisites
You need the following roles on your External Access Control, scoped to the Fee Manager contract:Set fee percentages
Configure the four fee rates. Values must not exceed the maximum limits set during Fee Manager deployment.Fee calculation formulas
Management fee formula
Management fee formula
The management fee is annualized and prorated by time elapsed:Where
timeDelta is the seconds elapsed since the last update and 31536000 is the number of seconds in a year (365 days).Performance fee formula
Performance fee formula
The performance fee is applied to earnings above the high water mark:The high water mark (
lastTotalAssets) is updated after each fee collection, so you only pay performance fees on new gains.Deposit and redeem fee formulas
Deposit and redeem fee formulas
Transactional fees are deducted from the gross amount:For reverse calculations (determining gross amount from a desired net amount):
Configure fee recipients
Fee recipients define how collected fees are split among addresses. The sum of all recipient shares must equal 10,000 bps (100%).Collect accumulated fees
Performance and management fees accumulate as vehicle shares held by the Fee Manager. To convert these shares into underlying assets, trigger a redemption.1
Monitor accumulated fees
Check the FeeManager’s share balance in the vehicle to see how much has been collected.
2
Redeem vehicle shares
The Fee Manager holds vehicle shares from accumulated performance and management fees. Redeem them to convert shares into the underlying asset.Requires:
FEE_MANAGER_REDEEM_VEHICLE_SHARES role.3
Distribute to recipients
Once redeemed, dispatch base assets to configured recipients.Requires:
FEE_MANAGER_DISPATCH_ERC20 role.