Constants
- Fixed fee floor:
0.005 SOL - Variable fee:
gross * 3 / 1000(0.30%) - Total fee:
fixed + variable - Net recipient amount:
gross - fee - Minimum deposit:
10_000_000lamports
Worked example
For a1 SOL (1_000_000_000 lamports) gross amount:
- Fixed:
5_000_000lamports - Variable:
1_000_000_000 * 3 / 1000 = 3_000_000lamports - Fee:
8_000_000lamports - Net:
992_000_000lamports
Where it applies
- Deposit (
publicAmount > 0):grossis the lamports moved into the pool; the recipient commitment encodesnet. - Shield-to-shield transfer (
publicAmount = 0): fee is paid out of the input notes; the output commitments sum toinputs - fee. - Withdrawal (
publicAmount < 0): the destination receivesnet; the treasury PDA receivesfee.