From f587e73e7bd941e0f5b2164ed48fe59f7d6b1ef8 Mon Sep 17 00:00:00 2001 From: YY Date: Thu, 28 Nov 2024 12:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9CdynamicSlippage=E2=80=9D:=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 706d34c..3016659 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This repository contains the `dynamic_slippage_config_json` that is used to esti 2. Dynamic Slippage is also implemented at the `/swap` endpoint, this will allow slippage to be estimated after "Swap Click" instead of during quoting, which will bring the estimation closer to the actual swap execution. **In the backend** -If `dynamicSlippage: "auto"` is passed to the `/swap` endpoint, the backend will +If `dynamicSlippage: true` is passed to the `/swap` endpoint, the backend will 1. Simulate a swap based on the exact quote. 2. Use the `quoteOutAmount` and `simulatedSwapOutAmount` to calculate a `simulatedSlippage`. 3. Use the `amplificationRatio` and multiply it to the `simulatedSlippage`.