<!-- canonical: https://0xsimao.com/findings/more-markets-instead-loop-strategy-deposit -->

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

Low/Info · Three Sigma · Lending · 2nd December 2024

Finding 3S-MORE-N02 of the MORE Optimizer security review.

- Protocol: https://www.more.markets/
- Report: /reports/more-optimizer
- Source: https://github.com/0xsimao/audits/blob/main/Three%20Sigma/2024-12-02-more-markets.pdf

---

### 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](https://github.com/MoreLabsXYZ/MORE-Optimizers/commit/a1ae67f3f1ed392d6b442c971f73ddaa63ed04c7).

Disclosed by 0xSimao (https://0xsimao.com/).
