Skip to content

Latest commit

 

History

1,493 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

DexLib is a library used by Kyberswap backend to integrate with decentralized exchanges. This library enables external DEX developers to integrate their DEX with Kyberswap by creating pull requests to this repository.

Resources

Stars

67 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages