Set slot-offset based creator fee brackets on a pro pool. Useful for sniper resistance — charge high fees in the first few seconds after launch that decay over time.
Each Solana slot is ~400ms. When active, slot fees take precedence over market cap based creator fees. Only the pool creator can call this.
Example — 50% for first ~2s, 10% for next ~4s, then normal fees:
slot_offset_upperbound | buy_fee_bps | sell_fee_bps | Timing |
|---|---|---|---|
5 | 5000 | 5000 | First ~2 seconds (50%) |
15 | 1000 | 1000 | Next ~4 seconds (10%) |
Set max_slot_offset: 15, max_fee_bps: 5000, enabled: true.
Set slot-offset based creator fee brackets on a pro pool. Useful for implementing time-decaying fees (e.g. high fees right after launch for sniper resistance that decay over slots).
On-chain address of the pro pool state account. Returned in the response when creating a pool.
Public key of the wallet that will sign and pay for the transaction.
Program ID of the Heaven DEX program. Use HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o for mainnet.
Array of slot fee brackets (max 42). Each bracket defines buy/sell fees at a specific slot offset range from pool creation.
Maximum slot offset at which slot-based fees apply. After this many slots, the fees revert to normal.
x >= 0Maximum fee in basis points across all slot brackets.
x >= 0Set to true to enable slot-based fees, false to disable them.
Maximum compute units for the transaction. Higher values allow more complex operations but cost more. Defaults to a sensible value if omitted.
x >= 0Priority fee in micro-lamports per compute unit. Higher values increase transaction priority. Defaults to a sensible value if omitted.
x >= 0Base64 encoded versioned transaction. Decode, sign with the creator wallet, and submit.