Slippage limit does not seem to hold, or price impact is incorrect
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by tracing how swap slippage limits and price impact are calculated for Arbitrum trades; the report includes a transaction hash and describes repeated “Too little received” reverts before one swap completed. Compare the configured 0.05% limit with the transaction’s outcome and identify whether the limit or the price impact estimate is incorrect. The issue does not name files or tests, so first locate the swap calculation and its coverage; done means the configured maximum is enforced.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
As title. I set the slippage to 0.05%, however looking at arbiscan I get a slippage that is up to 2%. For example, here is my recent swap: 0x26d30e23fab9edea1b16e324fa1364377b51b29026b21866619b6f32c93fc06e.
I suspected it was the slippage that was the problem, since the price impact function showed me 0.11%. Unless maybe the price impact was calculated incorrectly... not sure.
I use a loop to keep retying the swap (up to 10 times) if it fails. I get "execution reverted: Too little received" error 5-6 times before the 7th try was successful.
SWAP DETAILS on arbiscan:
1,380.729352 USDC
to
0.715545115632159099 ETH (1343.72 estimated value at time of swap)
Net loss from swap: 2.17%
To Reproduce
Not really sure how to reproduce this... I guess swap USDC for ETH on arbitrum with a 0.05% slippage and see what happens during times of high price movement.
Expected behavior
The max slippage limit should hold, so if the amount is exceeded, the transaction should revert.
- Ngôn ngữ chính
- Python
- Star
- 1k
- Fork
- 373
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uniswap-python/uniswap-python
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
uniswap-python/uniswap-python#487 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
uniswap-python/uniswap-python#415 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
uniswap-python/uniswap-python#405 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
uniswap-python/uniswap-python#404 · 1 reaction ·
-
How to use with the Base chain?Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
uniswap-python/uniswap-python#380 · 13 bình luận · 6 reaction ·
Tất cả issue của uniswap-python/uniswap-python
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
[Bug]: Importing weave changes the process-wide localeCó thể đã có người làm @himanshu748 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
UX
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
mediajunkie/piper-morgan-product#2008 · 2 bình luận ·