Skip to content
Request an audit

‹ All findings

> should be used instead of!= in LoopStrategy::_deposit()

Low/InfoMORE Optimizer·by the Three Sigma team·Lending·2nd December 20243S-MORE-N02

Description

LoopStrategy::_deposit() stops iterating if the utilization ratio reaches exactly the target, that is, market.totalSupplyAssets.wMulDown(targetUtilization) == totalBorrowAssets.

However, if the utilization is bigger, it continues.

Recommendation

This should not be possible given the rest of the function, but using > is more correct.

Status

Addressed in #a1ae67f.