Submitted by evan, also found by ladboy233
Liquidator reward is not taken into account when calculating potential debt. When liquidationInitialAsk is set to the bare minimum, liquidator reward will always come at the expense of vaults late on in the stack.
Consider the following test where the vault loses more than 3 tokens.
VSCode, Foundry
Include liquidator reward in the calculation of potential debt.
androolloyd (Astaria) disputed and commented:
Picodes (judge) commented:
