Skip to content

[yAudit-01] Derive minimum liquidity from asset decimals - #307

Merged
clement-ux merged 1 commit into
mainfrom
clement/yaudit_01-min-liquidity
Jul 22, 2026
Merged

[yAudit-01] Derive minimum liquidity from asset decimals#307
clement-ux merged 1 commit into
mainfrom
clement/yaudit_01-min-liquidity

Conversation

@clement-ux

Copy link
Copy Markdown
Collaborator

Summary

  • derive MIN_LIQUIDITY with exponentiation from the validated liquidity asset decimals
  • preserve the existing values of 1 for 6-decimal assets and 1e12 for 18-decimal assets

Testing

  • forge test --no-match-path test/invariants/**
  • 530 passed, 0 failed, 3 skipped

Audit report

Related yAudit issue: https://github.com/yAudit/origin-paxos-adapter-review/issues/1

@clement-ux clement-ux changed the title Derive minimum liquidity from asset decimals [yAudit-01] Derive minimum liquidity from asset decimals Jul 21, 2026
@clement-ux clement-ux added the Audit Fix Resolves findings from security audit. label Jul 21, 2026
@clement-ux clement-ux self-assigned this 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 b323221 into main Jul 22, 2026
7 checks passed
@clement-ux
clement-ux deleted the clement/yaudit_01-min-liquidity branch July 22, 2026 07:43
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