Skip to content

Audit/Cyfrin february 2026 - #18

Merged
FabienCoutant merged 19 commits into
devfrom
audit/cyfrin-february-2026
Mar 9, 2026
Merged

FabienCoutant merged 19 commits into
devfrom
audit/cyfrin-february-2026

Conversation

@FabienCoutant

Copy link
Copy Markdown
Contributor

No description provided.

@FabienCoutant
FabienCoutant force-pushed the audit/cyfrin-february-2026 branch from c99142c to 0905050 Compare March 1, 2026 13:03
…z test

OpenZeppelin v5 uses custom errors (SafeCastOverflowedUintDowncast)
instead of string reverts. Use generic vm.expectRevert() and return
early to avoid asserting on reverted call results.
@FabienCoutant
FabienCoutant force-pushed the audit/cyfrin-february-2026 branch from 0905050 to 84785b1 Compare March 1, 2026 13:08
FabienCoutant added 8 commits March 1, 2026 15:09
Prevents CI from resolving a newer OZ version where
__UUPSUpgradeable_init was removed, breaking the build.
… unset ratio

Removed the check for surplusBufferRatio being zero in Surplus.sol and added a new error SurplusBufferRatioNotSet in Errors.sol. Updated LibSurplus to use the new error and adjusted tests to reflect these changes, ensuring proper handling of surplus calculations.
…nd streamline loops for improved clarity and efficiency
@FabienCoutant
FabienCoutant force-pushed the audit/cyfrin-february-2026 branch from b5bbc17 to c832d82 Compare March 4, 2026 17:08
@FabienCoutant
FabienCoutant merged commit 0f92ecb into dev Mar 9, 2026
4 checks passed
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.

1 participant