-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Problem
Currently a lot of tech support goes into explaining how the response of the current /quote endpoint is supposed to be used to create an order with a reasonable price.
The issue is that since the /quote endpoint was originally implemented the meaning of the feeAmount field changed. Originally a user signed a specific feeAmount upfront but now the fee amount is supposed to be 0 and each solver competes on offering lower fees by baking those into the clearing prices in their solutions.
Additionally the original endpoint does not account for slippage. So it always returns the absolute best value we can find at a moment and users need to adjust the buy and sell amount according to their slippage values.
Suggested solution
Since both of these quirks (we kept for backwards compatibility) lead to confusion a new v2 endpoint should be introduced that additionally takes the slippage as an arguments and already returns the exact order struct the user is supposed to sign.