# NightOwl

**NightOwl** Is a pathfinding algorithm for crypto trading. Using **NightOwl** you can find the best prices when swaping assets.

## DONE

### Library

#### Math

- $sqrtPiceX96 = ((\sqrt{price}){\times}2)^{96}$
- $(sqrtPiceX96{\div}2^{96}) = price$
- $sqrtPiceX96^2{\div}(2^{96})^2 = price$
- $sqrtPiceX96^2{\div}2^{192} = price$
- $k = x{\times}y$

## TODO

### SDK

- UniV2Sdk
- UniV3Sdk

### ALGORITHM

- PaymentSpliter
- GasCalculator
- PathFinder

### CONTRACTS

#### NightOwlRouters

- Execute Swaps
- Verify Swaps

#### NightOwlHunters

- Find available pools
- Calculate Prices

### NightOwlOrbs

- Trading BOT
- Arbitrage Trading
- ==Others==