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.
AerodromeSlipstreamRouter
Request model for buying exactly an amount of tokens.
Successful Response
The response is of type object
.