Skip to content

chore: update copy #655

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

Merged
merged 3 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
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
18 changes: 13 additions & 5 deletions docs/100-swap-api/3-send-swap-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,25 @@ const swapTransaction = await (

Apart from the static `slippageBps` parameter, Jupiter has iterated on different designs to estimate slippage better.

You can pass in `dynamicSlippage=true` to Swap API where our backend will estimate a slippage value to be used for the specific quote and transaction for you.
You can pass in `dynamicSlippage=true` to Swap API where our backend will estimate a slippage value by simulating the swap transaction closer to execution and calculate an optimal value based on the token category, historical swap's slippage data and other heuristics.

Our backend will simulate slippage closer to execution and calculate an optimal value based on the token category, historical swap's slippage data and other heuristics.
:::info
The Dynamic Slippage implementation on the Swap API is different from the Real Time Slippage Estimator (RTSE) on the Ultra API.

:::note
To understand Dynamic Slippage better, you can reference this repository to understand some of the configs used.
To use RTSE, you will need to use the Ultra API.
:::

[Dynamic Slippage Config](https://github.com/jup-ag/dynamic-slippage-config)
:::warning
To use Dynamic Slippage, you will need to pass in `dynamicSlippage=true` to both the `/swap/v1/quote` and `/swap/v1/swap` endpoints.
:::

```jsx
const quoteResponse = await (
await fetch(
'https://lite-api.jup.ag/swap/v1/quote?inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=100000000&slippageBps=50&restrictIntermediateTokens=true&dynamicSlippage=true'
)
).json();

const swapTransaction = await (
await fetch('https://lite-api.jup.ag/swap/v1/swap', {
method: 'POST',
Expand Down
9 changes: 3 additions & 6 deletions docs/101-ultra-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ If the above sounds like too much work, then Ultra API will be the better choice

## FAQ

**What is the fee for using Ultra API?**
**Can I add custom integrator fees to Ultra API?**

Ultra API takes 0.1% (or 0.05% depending on the tokens) of the swap amount as a fee.
- **Integrator without custom fees**: Do note that when your users swap using Ultra, we take 0.1% (or 0.05% depending on the tokens) of the swap amount as a fee.
- **Integrator with custom fees**: If you are an integrator, you can add custom integrator fees via Ultra API and Jupiter will take 20% of the integrator fees. Please refer to the [Add Fees To Ultra](/docs/ultra-api/add-fees-to-ultra) guide for more information.

**What is the rate limit for Ultra API?**

Expand All @@ -69,7 +70,3 @@ Currently, there is no way to increase the rate limit for Ultra API.

Portal API Keys are not supported for Ultra API.
:::

**Can integrators take fees using Ultra API?**

Yes, you can add fees to Ultra API, on top of Jupiter's fees. Please refer to the [Add Fees To Ultra](/docs/ultra-api/add-fees-to-ultra) guide for more information.