You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pool can be unlocked by depositing some amount of T and I think this was the original intention when implementing this piece of code - it is hard to come up with _calculateTokensToMint value if there is nothing deposited but the covT supply is non-zero.
We should revisit this decision or at least make it clear in the docs what should be done after the 100% seize event.
The text was updated successfully, but these errors were encountered:
Consider the following scenario:
When someone tries to deposit in this state, the transaction will revert because
collateralBalance
is 0:coverage-pools/contracts/AssetPool.sol
Lines 584 to 599 in 71047ca
The pool can be unlocked by depositing some amount of T and I think this was the original intention when implementing this piece of code - it is hard to come up with
_calculateTokensToMint
value if there is nothing deposited but the covT supply is non-zero.We should revisit this decision or at least make it clear in the docs what should be done after the 100% seize event.
The text was updated successfully, but these errors were encountered: