Developer Guides

Overview

The guides in the following section provides a step-by-step walkthrough of Elastic swap and liquidity management operations in a TypeScript environment. For the sake of simplicity, the examples have been implemented purely in Node.js allowing readers to focus on just the operational logic.

Note that all values returned from the Elastic smart contracts are logged into the developer console for troubleshooting and feedback. The code samples can be found on the KyberNetwork GitHub linked below:

Implemented on Polygon PoS

The demos have been implemented on Polygon PoS (ChainId: 137) which enables live interactions with production Elastic smart contracts. This means that the information returned is in real-time and write operations uses REAL TOKENS WITH MONETARY VALUE.

While this provides the best learning environment without the overhead of setting up a complete test environment, users are advised to practice additional caution when executing the scripts.

Trade

Liquidity Management

NPM Packages

KyberSwap Elastic SDK package

npm i @kyberswap/ks-sdk-elastic

KyberSwap Core SDK package

npm i @kyberswap/ks-sdk-core

Last updated