should restrict oldPoolId ≠ new poolId
For example, in the giveLoan function, the loan can be transferred to a new pool, but it is not checked whether the new pool is the same as the old pool. If it is the same poolid, then there will be problems.
Actually pools[poolid].outstandingLoans += lenderInterest + protocolInterest
Relatively speaking, the pool has not been migrated, but outstandingLoans has been updated
vscode
It is recommended to judge that oldPoolId ≠ new poolId
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.