Rate Limiter

On DBC, we allow partners to configure another mode for base fee, called Rate Limiter .

When rate limiter mode is enabled, the fee slope will increase if a user buys with a higher amount.

For example, if a user swaps 100 SOL, then the first SOL will be charged as 1%, the next SOL will be charged as 5%... until it fulfils full input amount.

Notes:

  • The rate limiter mode is only available if collect fee mode is in quote token only, and when the user buys the token (not sell).

  • Rate limiter doesn't allow user to send multiple swap instructions (or CPI) to the same pool in 1 transaction.

  • In the field base_fee_mode in base fee state, partners have to choose between Fee Scheduler or Rate Limiter.

Last updated