Introduction
Syrup is a permissionless lending aggregator built by Maple. Users deposit USDC into Syrup and receive syrupUSDC LP tokens, earning yield generated from fully collateralized institutional loans. All loans on Syrup are backed by digital assets held in secure vaults, ensuring creditors’ funds are protected against default.
Why Did They Need an Audit?
Although Syrup leverages established lending patterns, its core functionality revolves around:
- permit‐enabled deposits: Users can deposit USDC using EIP-2612 permits, reducing transaction count but introducing front‐running vectors.
- LP‐token minting: syrupUSDC must accurately track deposited USDC and accrued yield.
- Permissioned router logic: The SyrupRouter orchestrates deposits, withdrawals, and fee accounting across multiple institutional pools.
Because the SyrupRouter coordinates all user deposits and uses EIP-2612 permits, even minor issues, such as permit mismanagement or front-running, could disrupt deposits or yield calculations. The two-day audit focused on ensuring:
- EIP-2612 permit flows cannot be front-run or otherwise abused.
- Deposit and withdrawal logic maintains correct accounting at every step.
- Administrative functions are restricted to the intended roles.
Scope of the Engagement

- Team: 2 auditors · 4 person-weeks
- Chain: Ethereum
Audit Date: 2024-05-21
Language: Solidity
Type: Code Audit