Linear Vesting Formula
The core vesting mechanism follows a linear time-based release schedule: Where:elapsed_time= time since vesting starttotal_bought_tokens= total tokens purchased by all userstotal_vesting_duration= total duration of vesting period
Individual Token Claim Formula
Where:total_claimable= total tokens available for claiming at current timeuser_deposit= individual user’s deposit amounttotal_vault_deposit= sum of all user deposits in the vaultalready_claimed= tokens already claimed by the user
Refund Calculation Formulas
Base Refund Calculation
Deposit Overflow Refund (Pro-rata Vaults)
Where:excess_deposit= total deposits exceeding the maximum buying capunswapped_amount= tokens that weren’t successfully swapped
Swappable Amount Calculation
Pro-rata Mode
FCFS Mode
Where:max_buying_cap= maximum tokens that can be purchased (for pro-rata mode only)total_deposit= sum of all user deposits
Vault Mode Specifications
Pro-rata Mode
- No maximum buying cap restriction
- Distributes tokens proportionally among all participants
- Provides refunds for excess deposits
- Suitable for unlimited token sales
FCFS Mode
- Enforces maximum buying cap
- Tokens distributed on first-come-first-served basis
- No overflow refunds (all deposits are valid)
- Suitable for fair distribution with limited token supply

