Skip to main content

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 NameAddress
UniswapV2Factory0xD42Af909d323D88e0E933B6c50D3e91c279004ca
UniswapV2Router020x183F288BF7EEBe1A3f318F4681dF4a70ef32B2f3

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.

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.