Skip to content

fix collateral ratio edge case and readme block explorer links - #22

Open
mooncitydev wants to merge 1 commit into
parallel-protocol:mainfrom
mooncitydev:fix-collateral-ratio-readme-explorers
Open

mooncitydev wants to merge 1 commit into
parallel-protocol:mainfrom
mooncitydev:fix-collateral-ratio-readme-explorers

Conversation

@mooncitydev

@mooncitydev mooncitydev commented Apr 10, 2026 •

Copy link
Copy Markdown

Summary

  • getCollateralRatio: when implied collateral ratio in base 1e9 exceeded uint64 max (tiny stablecoin supply vs large collateral value), SafeCast.toUint64 reverted. The ratio is now saturated at type(uint64).max so integrators and redemption paths do not hit a hard revert on that edge case (this was listed under Known Issues in the readme).
  • README deployment tables: links used https:/// (invalid host) for mainnet, Base, Sonic, HyperEVM, and Avalanche explorers. Replaced with proper https:// URLs so the tables are clickable.
  • Removed the known-issue bullet for getCollateralRatio now that behavior is defined.

Tests: forge was not available in this environment; please run bun run test on your side.

made by mooncitydev

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