Exchange Contracts

KoffeeSwap
1 min readJul 6, 2021

--

These contracts power trading/exchange aspects of KoffeeSwap

Factory

The factory holds the generic bytecode responsible for powering pairs. Its primary job is to create one and only one smart contract per unique token pair.

Code

​KoffeeSwapFactory.sol

Address

The factory contract is deployed to the KuCoin Community Chain at: 0xC0fFeE00000e1439651C6aD025ea2A71ED7F3Eab

Router

The router, fully supports all the basic requirements of a front-end offering trading and liquidity management functionality. Notably, it natively supports multi-pair trades (e.g. x to y to z), treats KCS as a first-class citizen, and offers meta-transactions for removing liquidity.

Code

​KoffeeSwapRouter.sol

Address

The router contract is deployed to the KuCoin Community Chain at: 0xc0fFee0000C824D24E0F280f1e4D21152625742b

KoffeeMugs

KoffeeMugs are the pairs generated when liquidity is added to the Exchange for the first time. These pair contracts serve as automated market makers and keep track of pool token balances.

Code

KoffeeSwapPair.sol

Address

Each token pair gets a unique address when liquidity is first created.

--

--

KoffeeSwap
KoffeeSwap

Written by KoffeeSwap

KoffeeSwap is the first Decentralized Exchange on the Kucoin Community Network with Built-in Charting! koffeeswap.exchange

No responses yet