Notes:
When using tokenTo to short tokenFrom, the protocol is swapping tokenFrom into tokenTo;
tokenTo
tokenFrom
In practice, marginFom in "Open Short" is 0;
marginFom
Can also borrow out-of-range liquidity, but currentPrice must only be on the left of tickUppwer.
Last updated 2 years ago