Smart Contracts
KalySwap uses the standard Uniswap V2 protocol for its AMM functionality. Below are the deployed contract addresses on the KalyChain Mainnet.
Core Contracts
| Contract Name | Address |
|---|---|
| UniswapV2Factory | 0xb7b7a31C69199EB3D7378E84499c5335A9E99311 |
| UniswapV2Router02 | 0xA39723dC2713C9eECe0CecC74AC519Aa2dFB4206 |
Init Code Hash
The pair initialization code hash (used for computing pair addresses):
0x91b0fa855886c040a2fba5b67e7149d8d4d774e27c10798019a4ae8e3e83c5e0
Developer Resources
Source Code
The smart contract source code is open source and available for verification and review.
- Repository: KalyCoinProject/exchange-contracts
Accessing ABIs
You can install the artifacts via npm to access the ABIs for your dApps:
npm install --dev @kalycoinproject/exchange-contracts
Importing ABI in JavaScript/TypeScript:
import { abi as IKalyswapPairABI } from '@kalycoinproject/exchange-contracts/artifacts/contracts/kalyswap-core/interfaces/IKalyswapPair.sol/IKalyswapPair.json'
Attribution
These contracts are based on the Uniswap V2 Core and Periphery repositories.