You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Min size should be min_post_size since the AMM can theoretically take any size order
For swap APIs just accept input amount and allowed price impact in bps
Allow sub-lot amounts e.g. "dust" to fill against pool alone
If filling 1.2 lots as final operation, consolidate into a 1.2 lot instead of a 1 lot, then a 0.2 lot fill based on looking at order book price before returning to AMM
Calculate effective price after fees since pool has more fees than order book to compensate LPs. Fees:
LP fees (pool only)
Integrator fees (pool and book)
Market fees (pool and book)
Integrator and market fees should be collected only in quote asset, while LP fees should be used to balance out the pool. For integrator/market fees assessed on a pool match, they should be assessed on the output of a sell and the input of a buy
The text was updated successfully, but these errors were encountered:
min_post_size
since the AMM can theoretically take any size orderThe text was updated successfully, but these errors were encountered: