<!-- canonical: https://0xsimao.com/findings/maple-finance-syrup-immutable-event-emissions -->

# Immutable variables are emitted in events

Low/Info · Three Sigma · Permissionless lending · 23rd August, 2024

Finding 3S-SY-N04 of the Maple Syrup security review.

- Protocol: https://maple.finance/
- Report: /reports/maple-finance-syrup
- Source: https://github.com/0xsimao/audits/blob/main/Three%20Sigma/2024-08-23-maple-finance-syrup.pdf

---

### Description

The following immutable variables are unnecessarily included in event emissions:

- SyrupUserActions::_swap() - `syrupUsdc` in `Swap` event.
- MplUserActions::_redeemAndMigrateAndStake() - `xmpl` in `RedeemedAndMigratedAndStaked` event.

### Recommendation

Immutable variables can not be changed, unless upgraded, so an event may not be necessary.
