Skip to content

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.

Notifications You must be signed in to change notification settings

KyberNetwork/kyberswap-dex-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kyberswap-dex-lib

What?

KyberSwap uses this lib to

  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?

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 recommened 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

Watchers

Forks

Packages

No packages published

Languages