mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-07-27 16:57:44 +00:00
docs: restore manual slippage examples
Co-authored-by: deepfeature <1503768+deepfeature@users.noreply.github.com> Agent-Logs-Url: https://github.com/GMGNAI/gmgn-skills/sessions/ae308c31-cf9d-4707-8848-a659112b33f4
This commit is contained in:
@@ -295,7 +295,7 @@ npx gmgn-cli swap \
|
||||
--input-token <input-token-addr> \
|
||||
--output-token <output-token-addr> \
|
||||
--amount 1000000 \
|
||||
--auto-slippage
|
||||
--slippage 0.01
|
||||
|
||||
# Query order
|
||||
npx gmgn-cli order get --chain sol --order-id <order-id>
|
||||
|
||||
+1
-1
@@ -295,7 +295,7 @@ npx gmgn-cli swap \
|
||||
--input-token <input-token-addr> \
|
||||
--output-token <output-token-addr> \
|
||||
--amount 1000000 \
|
||||
--auto-slippage
|
||||
--slippage 0.01
|
||||
|
||||
# 查询订单
|
||||
npx gmgn-cli order get --chain sol --order-id <order-id>
|
||||
|
||||
@@ -67,6 +67,15 @@ gmgn-cli swap \
|
||||
--amount <input_amount_smallest_unit>
|
||||
|
||||
# With slippage
|
||||
gmgn-cli swap \
|
||||
--chain sol \
|
||||
--from <wallet_address> \
|
||||
--input-token <input_token_address> \
|
||||
--output-token <output_token_address> \
|
||||
--amount 1000000 \
|
||||
--slippage 0.01
|
||||
|
||||
# With automatic slippage
|
||||
gmgn-cli swap \
|
||||
--chain sol \
|
||||
--from <wallet_address> \
|
||||
|
||||
Reference in New Issue
Block a user