Comment on page
Liquidity Pool
Admin function to set handlers
function setHandler(address _handler, bool _isActive)
Admin function to set max liquidity
function setMaxLiquidity(uint256 _maxLiquidity)
Public function to add liquidity
function provide(uint256 tokenXAmount, uint256 minMint)
Handler only function to add liquidity for an account
function provideForAccount(
uint256 tokenXAmount,
uint256 minMint,
address account
)
Public function to remove liquidity
function withdraw(uint256 tokenXAmount)
Handler only function to remove liquidity for an account
function withdrawForAccount(uint256 tokenXAmount, address account)
Returns tokenX equivalent of a certain amount BLP
function toTokenX(uint256 amount)
Returns available liquidity
function getUnlockedLiquidity(address account)
Returns provider's share in tokenX
function shareOf(address account)
Returns the amount of tokenX available for withdrawals
function availableBalance()
Returns the total balance of tokenX provided to the pool
function totalTokenXBalance()
Last modified 3mo ago