Skip to content

[yAudit-02] Allow deposits at exact solvency - #308

Merged
clement-ux merged 1 commit into
mainfrom
clement/yaudit_02-solvent-equality
Jul 22, 2026
Merged

[yAudit-02] Allow deposits at exact solvency#308
clement-ux merged 1 commit into
mainfrom
clement/yaudit_02-solvent-equality

Conversation

@clement-ux

@clement-ux clement-ux commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • treat exact coverage of accrued fees plus MIN_LIQUIDITY as solvent
  • keep deposits blocked when gross assets are even one unit below the required floor
  • add regression coverage for both 6-decimal and 18-decimal configurations

Fixes the finding reported in https://github.com/yAudit/origin-paxos-adapter-review/issues/2

Testing

  • forge test --match-path 'test/unit/MultiAssetARM/concrete/Deposit.t.sol' (16 passed)
  • forge test --no-match-path 'test/invariants/**' (532 passed, 0 failed, 3 skipped)

@clement-ux clement-ux changed the title Allow deposits at exact solvency [yAudit-02] Allow deposits at exact solvency Jul 21, 2026
@clement-ux clement-ux self-assigned this Jul 21, 2026
@clement-ux clement-ux added the Audit Fix Resolves findings from security audit. label Jul 21, 2026

@naddison36 naddison36 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@clement-ux
clement-ux merged commit 259e5cb into main Jul 22, 2026
7 checks passed
@clement-ux
clement-ux deleted the clement/yaudit_02-solvent-equality branch July 22, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Audit Fix Resolves findings from security audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants