Partner
1. How Partner Fee Collection Works
Fee Accumulation Mechanism
User Swap with Partner
β
Protocol calculates referral_fee = protocol_fee Γ ref_fee_rate / 10^9
β
Referral fee is stored in Partner.balances (on-chain Bag)
β
Fees accumulate across multiple swaps
β
Partner must manually claim fees using PartnerCap2. Swap with Partner (Earn Referral Fees)
Example
3. Claim Referral Fees (For Partners)
Example
Apply for Partner Swap
Last updated