Skip to content

Conversation

@liobrasil
Copy link
Contributor

@liobrasil liobrasil commented Jan 13, 2026

Summary

  • Adds pre-condition to createYieldVaultManager that calls FlowYieldVaultsClosedBeta.validateBeta
  • Makes the Beta gating behavior explicit and consistent with other Beta-gated methods

Quantstamp Audit Finding

FLOW-10: Unused betaRef Parameter in YieldVaultManager Creation (Undetermined)

The createYieldVaultManager function accepts a betaRef parameter but did not use it in the function body. The recommendation was to invoke FlowYieldVaultsClosedBeta.validateBeta inside the function for consistency with other Beta-gated methods.

Test plan

  • Verify that createYieldVaultManager rejects invalid betaRef
  • Verify that valid betaRef still allows creation of YieldVaultManager

Closes #141

🤖 Generated with Claude Code

Add pre-condition to createYieldVaultManager that invokes
FlowYieldVaultsClosedBeta.validateBeta to verify the betaRef
is valid, making the Beta gating behavior explicit and consistent
with other Beta-gated methods.

Addresses Quantstamp audit finding FLOW-10.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@liobrasil liobrasil requested a review from a team as a code owner January 13, 2026 13:10
@liobrasil liobrasil changed the title Fix: FLOW-10 - Validate betaRef parameter in createYieldVaultManager FLOW-10 - Validate betaRef parameter in createYieldVaultManager Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FLOW-10 Unused betaRef Parameter in Yieldvaultmanager Creation

2 participants