Folks Router V2 Migration Guide

On 1st December 00:00 UTC, Folks Router V1 will be deprecated. Make sure to migrate to Folks Router V2 before then.

What has changed

Folks Router V2 allows users to get a discount on the swap fees depending on how many FOLKS they have:

Tiers Discounts
0 ≤ FOLKS < 15 0%
15 ≤ FOLKS < 325 10%
325 ≤ FOLKS < 1000 20%
1000 ≤ FOLKS < 5000 30%
5000 ≤ FOLKS < 12500 40%
FOLKS ≥ 12500 50%

For convenience, there is a new endpoint /fetch/discount to get a user’s discount. There is a new optional query parameter userFeeDiscount for /fetch/quote which will consider the user discount in the fetched quote.

How to migrate

The new application ids for the Folks Router are:

  • Mainnet 3279848327

  • Testnet 748314673

The new API endpoints are:

The new SDK version is @folks-router/js-sdk@0.3.1.

If you are part of the Referral Program then this continues as normal. Your same escrow will receive your earned fees.

1 Like

is there any chance to leave support for V1 version, but it will go automatically with 0% discount? Or is there new Python version available? My both bots use community python version, so bit meh if I have to move to another aggregator…

Regards,
ROAM

Problem solved. Algolog will upgrade the python community SDK version.

2 Likes