This endpoint facilitates the trading of tokens by allowing users to specify the exact amount of the output token they wish to receive.
Utilizing the Aerodrome Slipstream protocol, the system calculates the necessary amount of the input token required to achieve the desired output. This operation is particularly useful for users who have a specific target amount of the output token in mind and are willing to provide the corresponding input token amount. The transaction is executed with consideration of current market conditions, including liquidity and price impact, ensuring that the trade is completed efficiently and effectively.
Required Allowances
In order to make this transaction, token allowances need to be set for the following contracts.
AerodromeSlipstreamRouterRequest model for buying exactly an amount of tokens.
The symbol of the token to swap from.
"WETH"
The symbol of the token to swap to.
"WETH"
The tick spacing of the pool
x >= 1100
300
400
500
1000
1500
2500
2700
3000
5000
6000
7000
8000
9000
10000
20000
The amount of the token to swap to
x > 01.5
The maximum amount of the token to swap from
x >= 01.6
base The address of the transaction sender.
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
"AERODROME_SLIPSTREAM_BUY_EXACTLY"Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
Successful Response
The unsigned transaction data. User must sign and broadcast to network.