0x-api
0x-api copied to clipboard
Incorrect price: AAVE <-> USDT pair
Expected Behavior
I want to swap 1 USDT to AAVE token:
curl https://api.0x.org/swap/v1/quote\?sellToken\=USDT\&buyToken\=AAVE\&excludedSources\=Native\&slippagePercentage\=0.02\&affiliateAddress\=0xa0ED0bD27eDD7cb7529f46aC02cE3474fB67FA84\&sellAmount\=1000000
I see the price: 0.000000000056902308
This is not correct, because If I will use USDT as buyToken:
curl https://api.0x.org/swap/v1/quote\?sellToken\=AAVE\&buyToken\=USDT\&excludedSources\=Native\&slippagePercentage\=0.02\&affiliateAddress\=0xa0ED0bD27eDD7cb7529f46aC02cE3474fB67FA84\&buyAmount\=1000000
I will see the correct price: 0.00332121146623159
Current Behavior
Incorrect convert 1 USDT (sell) to AAVE token.
Steps to Reproduce (for bugs)
1. send request for selling 1 USDT: curl https://api.0x.org/swap/v1/quote\?sellToken\=USDT\&buyToken\=AAVE\&excludedSources\=Native\&slippagePercentage\=0.02\&affiliateAddress\=0xa0ED0bD27eDD7cb7529f46aC02cE3474fB67FA84\&sellAmount\=1000000
Your Environment
Mainet
P.S. the same you can see on: https://matcha.xyz/markets/1/0xdac17f958d2ee523a2206206994597c13d831ec7/0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
@fntz have you tried that?
Just use AAVE/USDT instead of USDT/AAVE?