Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 814 Bytes

File metadata and controls

23 lines (15 loc) · 814 Bytes

kyberswap-dex-lib

What?

KyberSwap uses this lib for off-chain tracking and computation, specifically

  1. Fetch pools;
  2. Track latest pool states; and
  3. Simulate expected output for a given input swap amount

in order to search for the optimal aggregated swapping route.

How to Contribute?

  • Off-chain: Implements 3 things in pkg/liquidity-source (pkg/source contains legacy code using big.Int):
  1. PoolsListUpdater: fetches latest pool list incrementally
  2. PoolTracker: tracks latest pool state on new log event or on an interval
  3. PoolSimulator: simulates expected output for a given input swap amount a. It's recommended to use uint256.Int for better performance b. CloneState should also be implemented