Skip to content

add links to dynamic slippage #542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/2-apis/1-swap-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ Dynamic slippage is a slippage estimation and optimization mechanism during the

The frontend sends a payload to the backend with an additional `dynamicSlippage` field with `maxBps` set as the user's max slippage **(this is important to respect the user's max, the jup.ag UI sets the default to 300bps (3%))**.

:::note
To find out more about how Dynamic Slippage works in detail and the heuristics applied:
- [Jupresearch](https://www.jupresear.ch/t/dynamic-slippage/21946)
- [Dynamic Slippage Config Repository](https://github.com/jup-ag/dynamic-slippage-config/)
:::

```js
// get serialized transactions for the swap
const { swapTransaction } = await (
Expand Down