If you want to see a complete flow to make a swap you can review this code. In this example you can see the different steps.
Get pool data
Estimate Clipper Prices
Create a quote
Sign a quote
Execute a transaction
There are three kinds of assets:
Shorttail: Assets on Clipper Pool
Longtail: Assets not on Clipper Pool but can be traded through coves.
ClipperLP: Underlying token representing fraction of clipper pool.
Given those three assets, there may be the following Swap combinations:
Native token → Shorttail
Shorttail → Native token
Shorttail → Shorttail
Last updated 10 months ago
Was this helpful?