Closed d10r closed 2 months ago
There's 2 aspects which can render an account "high risk":
many outgoing flows (be it CFA or GDA flows)
high (in terms of USD value) aggregate outgoing flowrate
is high risk because insolvency of the account places all outgoing flows in the liquidation queue at ones. In theory there could be so many that all the blockspace of the liquidation period (currently 4h) is not enough to liquidate them all in time. In practice no account is anywhere close to that limit, but it's risky anyway:
is high because if for any reason (e.g. temporary chain congestion or even outage, unknown sentinel bug) liquidation of such an account wouldn't happen in time (while the buffer isn't fully consumed), that would eat into the PIC bond (which are currently rather small) or even make the protocol partially insolvent.
Highest risk is the combination of 1. and 2., especially considering that such a combination could be how a malicious actor trying to steal from the protocol would set up.
At first, it may seem that we only need to pay attention to accounts which based on the current state would become insolvent insolvent in the near future. E.g. an account with a runtime of years could with a single ERC20 transfer be placed seconds from insolvency.
Proposed criteria:
Both criteria are per account and SuperToken.
Next: figure out how to query for accounts satisfying this conditions.
See Leo's Insolvency Prediction Dashboard
Problem: We currently have no forward-looking solvency monitoring. Mass liquidations or high-value liquidations come as a surprise.
AC: criteria for defining "high risk" accounts with regard to solvency.