Skip to content

Instantly share code, notes, and snippets.

@ysqi
Last active November 23, 2022 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysqi/2c129188d4667df92931840bad911b33 to your computer and use it in GitHub Desktop.
Save ysqi/2c129188d4667df92931840bad911b33 to your computer and use it in GitHub Desktop.
How to Fix "Price Impact Too High"

“Price Impact Too High” 是 Swap 对普通用户的保护机制,防止价格滑点过大遭受损失。

设计规则:

  1. 滑点超过15%,属于高风险交易。不开启专家模式则提示“Price Impact Too High”。
  2. 滑点超过5%,提示“Sway Anyway”

“Price Impact Too High” 解决办法:

  1. 降低交易数量
  2. 开启专家模式(Expert Mode)

"Price Impact Too High" is Swap's protection mechanism for ordinary users to prevent losses caused by excessive price slippage.

Design Rules:

  1. If the slippage exceeds 15%, it is a high-risk transaction. If the expert mode is not enabled, it will prompt "Price Impact Too High".
  2. If the slippage exceeds 5%, it prompts "Sway Anyway"

“Price Impact Too High” solution:

  1. Reduce the number of transactions
  2. Turn on Expert Mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment