Skip to content

Fix Silo deposited USD values to use current token prices - #428

Merged
fordpintomoney merged 2 commits into
mainfrom
codex/fix-silo-deposited-value
Oct 31, 2026
Merged

fordpintomoney merged 2 commits into
mainfrom
codex/fix-silo-deposited-value

Conversation

@fordpintomoney

Copy link
Copy Markdown
Contributor

The Silo's “Total Value Deposited” used recorded PDV multiplied by the current Pinto price, which can substantially understate the current value of deposited LP tokens. For example, the PINTO/cbETH deposits at Base block 53298716 displayed about $10,208 despite representing about $39,028 of pool assets.

Use deposited token amounts, including germinating deposits, multiplied by the current USD token price (lpUsd for LP tokens and the Pinto price for PINTO). Apply the same calculation to the Silo table and individual token page. Recorded PDV and reward calculations remain unchanged; unavailable valuation data displays a dash.

Pool liquidity can still exceed deposited value when LP tokens are held outside the Silo, and the contract's LP unit-price precision can introduce small rounding differences.

Validation:

  • Four regression tests pass, including the on-chain cbETH example, germinating deposits, partially deposited pools, PINTO, and missing/zero data.
  • Targeted Biome checks and the Vite production build pass.
  • Verified both pages locally in the browser against live Base data.
  • TypeScript reports the same 15 diagnostics as the unchanged base commit; no new diagnostics.
  • Automated review was attempted but could not run because its configured model is unavailable; the diff was reviewed manually.

@netlify

netlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pintomoney ready!

Name Link
🔨 Latest commit eaa785b
🔍 Latest deploy log https://app.netlify.com/projects/pintomoney/deploys/6ae56a30774281fbc205fcfe
😎 Deploy Preview https://deploy-preview-428.preview.pinto.money
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fordpintomoney
fordpintomoney merged commit 6627c19 into main Oct 31, 2026
6 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