DAMM v2: Changelog for Swap2, EvtSwap2, Rate Limiter, 99% Max Fee


❗️NOTE: This update contains BREAKING CHANGES

❗️NOTE: We have deployed this in DEVNET for you to test with

📆 ETA: Thursday, 9th October 2025, 11am UTC+8 (in ~1 week)

Ideally, you should deploy your update a short period before our program deployment (e.g. by 9th October, ~1030am UTC+8)

We’ll notify if the timeline shifts and when the program is deployed.

❗️ALL Trading Terminals are to do the following

BEFORE Program Update on 9th October 11am SGT:

[1] Swap Quote functions to update to the new quoting logic (containing Rate Limiter).

[2] Index new swap2 endpoint.

[3] Keep the current swap endpoint until program update takes place.

AFTER Program Update on 9th October 11am SGT: [1] Index new EvtSwap2 event. The new event emits collect_fee_mode, trade_direction, reserve_a_amount and reserve_b_amount.

—> For price charts, you will need to exclude token2022 transfer fee and anti sniping fees to get an accurate token price.

[1.1] Firstly, you will need to identify where the fees are coming from (either from input or output):

[a] fee_on_input: (event.collectFeeMode == 1 && event.tradeDirection == 1)? true: false