SinglePool

This contract is a single pool contract, where liquidity providers deposit/withdraw assets, and Plus Pool users bring or return utilized assets from a single pool.

Code

Github Link: (Will be updated after official launch)

Address

Contract adress after production is deployed (scope link)

Events, Read-Only Functions, and State-Changing Functions

Events

GiveReward

event GiveReward(address user, uint amount, uint lastIndex, uint rewardSum);
  • Event log of when mined KSP is claimed and distributed

Deposit

event Deposit(address user, uint depositAmount, uint depositTokens, uint totalAmount, uint totalSupply);
  • Event log of single pool liquidity additions

  • Parameters

    • user : user address

    • depositAmount : amount of tokens deposited by the user

    • depositTokens : amount of single pool tokens deposited

    • totalAmount : total amount of tokens deposited

    • totalSupply : total amount of single pool tokens deposited

Withdraw

event Withdraw(address user, uint withdrawAmount, uint withdrawTokens, uint totalAmount, uint totalSupply);
  • Event log of single pool liquidity removals

  • Parameters

    • user : User address

    • withdrawAmount : The amount of tokens removed by the user

    • withdrawTokens : The amount of single pool tokens removed by the user

    • totalAmount : Total amount of tokens deposited

    • totalSupply : Total amount of single pool tokens deposited

Borrow

event Borrow(address user, address plusPoolAddress, uint borrowAmount, uint accountBorrows, uint totalBorrows);
  • Event log of using assets utilized during plus deposit

  • Parameters

    • user : user address

    • plusPoolAddress : Plus Pool address

    • borrowAmount : The amount of tokens utilized

    • accountBorrows : Total amount of assets utilized by users

    • totalBorrows : Total amount of single pool utilized

Repay

event Repay(address user, address plusPoolAddress, uint repayAmount, uint accountBorrows, uint totalBorrows);
  • Event log of used assets are returned

  • Parameters

    • user : User address

    • plusPoolAddress : PlusPool address

    • repayAmount : The amount of returned asset tokens

    • accountBorrows : Total amount of assets utilized by users

    • totalBorrows : Total amount of single pool utilized

Last updated