LiquidityProtectionSystemStore
This contract aggregates the system balances of the liquidity protection mechanism.
Functions:
Events:
Function systemBalance(contract IERC20 token) → uint256
systemBalance(contract IERC20 token) → uint256
returns the system balance for a given token
Parameters:
token
: token address
Return Values:
system balance
Function incSystemBalance(contract IERC20 token, uint256 amount)
incSystemBalance(contract IERC20 token, uint256 amount)
increases the system balance for a given token
can be executed only by an owner
Parameters:
token
: token addressamount
: token amount
Function decSystemBalance(contract IERC20 token, uint256 amount)
decSystemBalance(contract IERC20 token, uint256 amount)
decreases the system balance for a given token
can be executed only by an owner
Parameters:
token
: token addressamount
: token amount
Function networkTokensMinted(contract IConverterAnchor poolAnchor) → uint256
networkTokensMinted(contract IConverterAnchor poolAnchor) → uint256
returns the amount of network tokens minted into a specific pool
Parameters:
poolAnchor
: pool anchor
Return Values:
amount of network tokens
Function incNetworkTokensMinted(contract IConverterAnchor poolAnchor, uint256 amount)
incNetworkTokensMinted(contract IConverterAnchor poolAnchor, uint256 amount)
increases the amount of network tokens minted into a specific pool
can be executed only by an owner
Parameters:
poolAnchor
: pool anchoramount
: amount to increase the minted tokens by
Function decNetworkTokensMinted(contract IConverterAnchor poolAnchor, uint256 amount)
decNetworkTokensMinted(contract IConverterAnchor poolAnchor, uint256 amount)
decreases the amount of network tokens minted into a specific pool
can be executed only by an owner
Parameters:
poolAnchor
: pool anchoramount
: amount to decrease the minted tokens by
Event SystemBalanceUpdated(contract IERC20 token, uint256 prevAmount, uint256 newAmount)
SystemBalanceUpdated(contract IERC20 token, uint256 prevAmount, uint256 newAmount)
triggered when the system balance for a given token is updated
Parameters:
token
: token addressprevAmount
: previous amountnewAmount
: new amount
Event NetworkTokensMintedUpdated(contract IConverterAnchor poolAnchor, uint256 prevAmount, uint256 newAmount)
NetworkTokensMintedUpdated(contract IConverterAnchor poolAnchor, uint256 prevAmount, uint256 newAmount)
triggered when the amount of network tokens minted into a specific pool is updated
Parameters:
poolAnchor
: pool anchorprevAmount
: previous amountnewAmount
: new amount
Last updated