A take-profit is a type of order where the user wants to sell a token once it's price is increases to hit a certain price.
Functions that needed:
- placing an order
- cancel the order after placing(if not filled)
- withdraw/redeem tokens after order is filled
// TODO - can be observed as improvements further
- We are going to try and fulfill every order that exist within the range the tick moved after a swap, with zero considerationfor the fact that this will increase gas costs for the original swapper.
- We will not consider slippage for placed orders, and allow infinite slippage.
- We will not support pools with native ETH as one of the tokens in the pair.