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 address after production is deployed
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 MESH 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 addressdepositAmount: amount of tokens deposited by the userdepositTokens: amount of single pool tokens depositedtotalAmount: total amount of tokens depositedtotalSupply: 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 addresswithdrawAmount: The amount of tokens removed by the userwithdrawTokens: The amount of single pool tokens removed by the usertotalAmount: Total amount of tokens depositedtotalSupply: 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 addressplusPoolAddress: Plus Pool addressborrowAmount: The amount of tokens utilizedaccountBorrows: Total amount of assets utilized by userstotalBorrows: 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 addressplusPoolAddress: PlusPool addressrepayAmount: The amount of returned asset tokensaccountBorrows: Total amount of assets utilized by userstotalBorrows: Total amount of single pool utilized
Last updated