@gelatonetwork/range-orders-react
Place Buy/Sell range orders on Uniswap V3 Pools Installation
yarn add -D @gelatonetwork/range-orders-react
or
npm install --save-dev @gelatonetwork/range-orders-react
Development
range-orders-lib
and range-orders-react
library
Build yarn workspace @gelatonetwork/range-orders-lib build
yarn workspace @gelatonetwork/range-orders-react build
Run the example app to see the changes in effect
cd swap-orders-lib/example
yarn start
Publish packages
yarn publish:lerna # publish latest versions
yarn publish:lerna:next # publish next versions
Buy/Sell Principle
Range Order Swaps are implemented based on the following possiblities
ZeroForOne | Buy | Sell | TickThreashold |
---|---|---|---|
true | 1/price | price | tick > current |
false | price | 1/price | tick < current |