Submitted by immeas
Market.sol#L562
If a user wants to completely forceReplenish a borrower with deficit, the borrower or any other malicious party can front run this with a dust amount to prevent the replenish.
This requires that the two txs end up in the same block. If they end up in different blocks the front run transaction will need to account for the increase in deficit between blocks.
vscode, forge
Use min(deficit,amount) as amount to replenish.
0xean (judge) commented:
08xmt (Inverse) confirmed and commented:
