PlusPool
This contract manages the leveraged assets of KLAYswap's plus pool liquidity providers. Liquidity providers can maximize their returns with positive assets (deposited assets + utilized assets) by using positive deposits according to their deposited assets. However, a high asset utilization ratio can result in automatic returns, which can result in losses.
Code
Github Link: (Will be updated after official launch)
Address
Cypress : 0x
Events, Read-Only Functions, and State-Changing Functions
Events
ChangeBorrowFactor
Event log of borrow factor change
ChangeLiquidationFactor
Event log of liquidation factor change
ChangeBorrowable
Event that occurs when availability is changed
GiveReward
Event log of when mined KSP is claimed and distributed
Parameters
user
: address of the user who claimedamount
: the amount of KSP claimedlastIndex
: index result of the pair of the wallet after claimingrewardSum
: The amount of KSP that has been accrued so far
GiveAirdropReward
Event log of when airdrop token is claimed and distributed
Parameters
user
: address of the user who claimeddist
: Airdrop contract addressamount
: the amount of token claimedlastIndex
: index result of the pair of the wallet after claimingrewardSum
: The amount of token that has been accrued so far
OpenPosition
Events that occur when depositing to PlusPool
If the token to deposit is KLAY,
msg.value
is provided.Parameters
user
: address of the useramountA
: The deposit amount of tokenAamountB
: The deposit amount of tokenBborrowA
: The utilization amount of tokenAborrowB
: The utilization amount of tokenBamountLP
: The amount of LP tokens minted due to additional liquidityuserLP
: the total amount of LP tokens minted due to additional liquidity
ClosePosition
Events that occur when withdraw liquidity
Parameters
user
: address of the useramountLP
: The amount of LP tokens burned due to liquidity removalamountA
: The withdraw amount of tokenAamountB
: The withdraw amount of tokenBuserLP
: the total amount of LP tokens minted due to additional liquidity
Liquidate
Event that occur when the automatic return system activates
Parameters
user
: address of the useridx
: Number of auto-return countdeptA
: Number of tokenA returned automaticallydeptB
: Number of tokenB returned automaticallylp
: the total amount of LP tokensdebtRatio
: Asset utilization ratio in case of automatic returntime
: Automatic return time