For the complete documentation index, see llms.txt. This page is also available as Markdown.

57522 sc insight usecurrent flag ignored in preview functions in moonwell strategies

Submitted on Oct 26th 2025 at 22:41:43 UTC by @Paludo0x for Audit Comp | Alchemix V3

  • Report ID: #57522

  • Report Type: Smart Contract

  • Report severity: Insight

  • Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi_audit/src/strategies/optimism/MoonwellUSDCStrategy.sol

  • Impacts:

    • Contract fails to deliver promised returns, but doesn't lose value

Description

Brief/Intro

MoonwellUSDCStrategy and MoonwellWETHStrategy expose two preview functions that accept a useCurrent flag to switch between Moonwell’s “stored” and “current” exchange rates, but the flag is ignored internally.

Vulnerability Details

Moonwell exposes two rates:

  • exchangeRateStored(), last stored rate.

  • exchangeRateCurrent(), returns up to date rate

The two strategy preview functions advertise a boolean switch:

However, internally they always call a helper that returns only the stored rate:

Impact Details

Because these preview functions are not used to calculate any fundamental rates or influence on-chain logic, the impact is confined to the user interface. Accordingly, we classify the impact as Low.

Proof of Concept

Proof of Concept

Was this helpful?