Open 0xOsiris opened 1 year ago
Yeah lets, definitely add some functions to calculate JIT on pools. We can figure out what functionality we want and what those functions might look like after we get the rest of the lib tested.
Have you all started on this yet? Would be happy to help out if not
Hey, this has not been started yet. Feel free to take this on if you would like. I think we should add all of the helpful functions that a user might interact with for v2 and v3 pools. Feel free to drop any comments here for any brainstorming / feedback that you want along the way!
👋 sounds great! I will let you know as I make progress
I think adding liquidity provision helpers on the pools could be very appealing to liquidity providers monitoring and moving around large amounts of liquidity across CFMMs. This would allow liquidity providers to seamlessly automate their liquidity provision, and analytically optimize the profitability of their positions.
For Starters:
Mint Liquidity
Collect Fees
Remove Liquidity from a position
Ranged Liquidity or Time Weighted Average price
Seconds per Liquidity & Seconds inside a tick range
The above function would also be helpful for calculating optimal JIT positions and amounts.