Fees and the HUSH token
The withdraw fee and what it buys.
The fee
Hush charges 0.10% of the amount on a withdraw.
| Action | Fee |
|---|---|
| Set up | None |
| Deposit | None |
| Apply | None |
| Send | None |
| Withdraw | 0.10% of the amount |
Solana's own transaction fees and account rent are separate and go to the network.
How it is taken
The fee is amount × 10 / 10,000 in base units, rounded down. The withdraw instruction pays it in the same transaction that pays you: the vault releases the whole amount, you receive the amount less the fee, and the fee recipient receives the fee.
| Withdraw | Fee | You receive |
|---|---|---|
| 500.00 USDC | 0.50 USDC | 499.50 USDC |
| 1 SOL | 0.001 SOL | 0.999 SOL |
A SOL fee arrives as lamports in the fee recipient's wallet. A USDC fee arrives in that wallet's USDC account.
The app shows the fee before you sign, the API returns it as fee from buildWithdraw, and the CLI prints it after a withdraw.
Who can change it
The program stores the fee and its recipient in its Config. The program's admin can change both with set_fee. The program refuses any fee above 1%, at initialize and at set_fee.
The HUSH token
The withdraw fee buys HUSH and burns it.The fee recipient is the wallet that creates the HUSH token at launch. Withdraw fees collect there in SOL and USDC.
Once the HUSH mint exists, a worker run by Hush signs as that wallet on a regular interval. It swaps the collected USDC, and the collected SOL above a reserve kept for rent and transaction fees, for HUSH through Jupiter. Then it burns exactly the HUSH each swap delivered.
The buying and burning are ordinary transactions of the fee recipient's wallet, public like any others. The program has no instruction for them. It pays the fee to the recipient in the withdraw.