Skip to content

Instantly share code, notes, and snippets.

@ysqi
ysqi / deepEthereum_address.go
Last active February 18, 2020 02:42
以太坊获得账户地址过程演示,https://learnblockchain.cn/article/563
package main
import (
"crypto/ecdsa"
"crypto/rand"
"fmt"
"os"
"github.com/ethereum/go-ethereum/crypto"
)
@ysqi
ysqi / PriceImpactTooHigh.md
Last active November 23, 2022 07:53
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)