Submitted by WatchPug
In the current implementation, when an incident is reported for a certain pool, the index pool can still withdrawCredit() from the pool, which in the best interest of an index pool, the admin of the index pool is preferred to do so.
This allows the index pool to escape from the responsibility for the risks of invested pools.
Making the LPs of the pool take an unfair share of the responsibility.
In our case, [Index Pool 1] earned premium without paying for a part of the compensation.
Change to:
https://github.com/code-423n4/2022-01-insure/blob/19d1a7819fe7ce795e6d4814e7ddf8b8e1323df3/contracts/PoolTemplate.sol#L416-L421
oishun1112 (Insure) confirmed and disagreed with severity:
oishun1112 (Insure) commented:
