<!-- canonical: https://0xsimao.com/findings/maple-finance-syrup-duplicated-permit -->

# Duplicated _permit() function

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

Finding 3S-SY-N03 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 _permit() function, utilized in the MplUserActions, SyrupRouter, and SyrupUserActions contracts, is duplicated across them.

### Recommendation

To enhance code reusability and maintainability, this function can be relocated to the utils folder.
