<!-- canonical: https://0xsimao.com/findings/maple-finance-iii-maple-storage-slot-optimization -->

# MapleLoanStorage storage slot optimization.

Low/Info · Three Sigma · Institutional lending · 10th April, 2024

Finding 3S-MAPLE-N02 of the Maple Finance security review.

- Protocol: https://maple.finance/
- Report: /reports/maple-finance-iii-2024
- Source: https://cdn.sanity.io/files/qoqld077/production/36dbe5ca76da3d2392bcee581548067705b8bd36.pdf

---

### Description

On the MapleLoanStorage contract, a storage slot can be reduced by packing the last
variable: platformServiceFeeRate (a uint64) with one of the addresses.

### Recommendation

Pack the variables into a single storage slot.
Note: This may slightly harm code readability

### Status

Acknowledged by the team.
