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
Factory
Exchange
PoolVoting
VotingKSP
Treasury
Distribution
Governor
SinglePool
SinglePool Factory
PlusPool
PlusPool Factory
Store
Utils
Single/Plus Utils
Helper
EcoPotVoting
EcoPot
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
SinglePool Factory
This contract is a single pool creation/management contract, where liquidity providers deposit/withdraw assets, and Plus Pool users bring or return utilized assets from a single pool.
Address
Cypress :
0xd1890d8f02f4c63553658ba49c53a82eb84009e6
Events, Read-Only Functions, and State-Changing Functions
Events
Read-Only Functions
Events
CreatePool
1
event CreatePool(address token, address pool, uint exid);
Copied!
Event to create new SinglePool
Parameters
token : A token address in target token
pool : SinglePool contract address of this pool
exid : SinglePool ID
SetDepositActive
1
event SetDepositActive(address poolAddress, bool b);
Copied!
Event that occurs when SinglePool deposit availability is changed
SetWithdrawActive
1
event SetWithdrawActive(address poolAddress, bool b);
Copied!
Event that occurs when SinglePool withdrawal availability is changed
ChangeMiningRate
1
event ChangeMiningRate(uint _mining);
Copied!
Event that occurs when SinglePool mining rate is changed
Read-Only Functions
mining
The mining rate of the pool
It is a value between 0 and 10000, in units of 0.01%
Default - 500
getPoolCount
Number of SinglePools
borrowBalanceStored
1
function borrowBalanceStored(address token, address user, address poolAddress) public view returns (uint)
Copied!
Utilized asset quantity
Parameters
token : Token address
user : User address
poolAddress : SinglePool address
Previous
SinglePool
Next
PlusPool
Last modified
5mo ago
Copy link
Contents
Address
Events, Read-Only Functions, and State-Changing Functions