KLAYswap
Search…
KLAYswap
English
Introduction
Protocol Overview
Core Concept
KLAYswap Advantages
Risk & Security
Audit
TOKENOMICS
KSP
PRODUCT
SWAP
Single-side Deposit
Pair Deposit
Plus Deposit
KSP Staking & Voting
Governance
Drops
Ecopot
Pool Airdrop
APR & APY
DEVELOPERS
Contract
Airdrop
EcoPot
HOW-TO GUIDES
KLAYswap Guide
How to add liquidity on KLAYswap
How to create a liquidity pool on KLAYswap
How to stake and vote on KLAYswap
How to deposit assets
FAQ
KLAYswap
Orbit Bridge
KLAYswap git
Orbit Bridge git
KLAYswap audit report
Powered By
GitBook
Core Concept
We explain the core concepts of KLAYswap's smart contract structure, swap requests, and mining.
KLAYswap Smart Contract Structure
Smart Contract Structure
Types of contract:
Factory Smart Contract
Exchange Smart Contract
FactoryView Smart Contract
Governance Smart Contract
These contracts will be explained with detail later in the contract section of this book.
Swap Request
Positive Swap request
Request swap with input token amount
Negative Swap
Request swap with output token amount
Routing Swap
Swap through multiple pool exchanges.
About Mining
mined
Total mined KSP amount
miningIndex
Mining reward Index for each liquidity pool.
mining rate
Mining rate for each pool. (1~100, total sum of pools mining rate will be 100)
Calculating Claimable amount
( Current market index - last user index ) * ( user LP token amount )
Previous
Protocol Overview
Next
KLAYswap Advantages
Last modified
1yr ago
Copy link
Outline
Smart Contract Structure
Swap Request
About Mining