Mutuum Contracts - Mutuum Finance


Prepared by:

Halborn Logo

HALBORN

Last Updated 12/18/2025

Date of Engagement: November 19th, 2025 - November 21st, 2025

Summary

100% of all REPORTED Findings have been addressed

All findings

6

Critical

0

High

1

Medium

0

Low

4

Informational

1


1. Introduction

Mutuum Finance engaged Halborn to perform a security assessment of their EVM smart contracts from November 18th, 2025, to November 26th, 2025. The assessment scope was limited to the smart contracts provided to Halborn. Commit hashes and additional details are available in the Scope section of this report.


The Mutuum Finance codebase in scope consists of solidity smart contracts that implement an aave inspired staking mechanism with additional features like dynamic exchange rate, and revised slashing mechanism.


2. Assessment Summary

Halborn was allocated 7 days for this engagement and assigned 1 full-time security engineer to conduct a comprehensive review of the smart contracts within scope. The engineer is an expert in blockchain and smart contract security, with advanced skills in penetration testing and smart contract exploitation, as well as extensive knowledge of multiple blockchain protocols.

The objectives of this assessment were to:

    • Identify potential security vulnerabilities within the smart contracts.

    • Verify that the smart contract functionality operates as intended.


In summary, Halborn identified some areas for improvement to reduce the likelihood and impact of potential risks, which were mostly addressed by the Mutuum Finance team. The primary recommendations were as follows:

    • Consider modifying the stake function to make sure that zero shares should not be minted

    • Consider deriving totalStaked on-chain directly from the referenced staking token’s totalSupply wherever it is feasible.

    • Consider validating cooldownSeconds and unstakeWindow at pool creation time to ensure their sum stays within a safe bound.

    • Consider introducing bounds checks on the allowable range of expo + targetDecimals before computing the power of ten, reverting with a clear error if the combination would exceed a predefined maximum.


3. SCOPE

REPOSITORY
(a) Repository: mutuum-contracts
(b) Assessed Commit ID: 67782fe
(c) Items in scope:
  • src/mutuum/interfaces/IATokenCompat.sol
  • src/mutuum/interfaces/IDistributionManager.sol
  • src/mutuum/interfaces/IFeeCollector.sol
↓ Expand ↓
Out-of-Scope: Third party dependencies and economic attacks.
Remediation Commit ID:
  • c6612eb
  • 8d0e32e
Out-of-Scope: New features/implementations after the remediation commit IDs.

4. Findings Overview

Security analysisRisk levelRemediation
First Depositor Share Price Manipulation Allows Theft of Future DepositsHighSolved - 12/03/2025
Reward Distribution Depends on Externally Supplied ValueLowRisk Accepted - 12/03/2025
Cooldown Underflow Risk with Extreme ParametersLowSolved - 12/03/2025
Potential Overflow in Pyth Price Scaling for Extreme ExponentsLowSolved - 12/03/2025
No Explicit RewardToken Liquidity Check in TreasuryLowSolved - 12/03/2025
Ambiguity Around Units for Slashing AmountsInformationalSolved - 12/03/2025

Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.

// Download the full report

Mutuum Contracts

* Use Google Chrome for best results

** Check "Background Graphics" in the print settings if needed