Submitted by kutugu
The purpose of addDust is to ensure that both the token0Amount and token1Amount are greater than 100 units.
The current implementation is to calculate the value of 100 units 1e18 scales of token0 and token1, take the maximum value as liquidity, and add to the repayAmount.
The calculation does not take into account the actual getTokenAmounts result:
Foundry
Check the amount of token0Amount and token1Amount corresponding to repayAmount instead of adding dust manually
Keref (Good Entry) acknowledged and commented:
Good Entry Mitigated:
Status: Mitigation confirmed. Full details in reports from kutugu and 3docSec.
