Skip to content

Staging#52

Merged
fabiaz84 merged 8 commits intomainfrom
staging
Feb 28, 2026
Merged

Staging#52
fabiaz84 merged 8 commits intomainfrom
staging

Conversation

@fabiaz84
Copy link
Collaborator

No description provided.

fabiaz84 and others added 8 commits February 26, 2026 23:29
- TokenAmountSection: shared token selector + amount input for Genesis, Sail, Anchor
- DepositModalShell: shared overlay, header, close button for all deposit modals
- ProtocolBanner: Sail/Anchor protocol header (blue bar + token icon)
- DepositModalTabHeader: shared tab UI for Sail/Anchor (Mint|Redeem, Deposit|Withdraw)
- TransactionSuccessMessage: shared success state + Etherscan link
- formatRpcErrorMessage: utility for RPC error code mapping

Migrated to shared components:
- GenesisDepositModal, GenesisWithdrawModal: DepositModalShell
- SailManageModal: DepositModalShell, ProtocolBanner, DepositModalTabHeader, TransactionSuccessMessage
- AnchorDepositWithdrawModal: DepositModalShell, ProtocolBanner, DepositModalTabHeader

Made-with: Cursor
- useAnchorPrices: Add GOLD/SILVER branches using Chainlink spot prices (1 haGOLD≈1oz gold, 1 haSILVER≈1oz silver)
- AnchorDepositWithdrawModal: Add XAU_USD and XAG_USD to pegTargetUsdWei for deposit/withdraw modal USD values
- Anchor page: Update comment for gold/silver pricing flow

Made-with: Cursor
- Add DEBUG_ANCHOR flag: logs only with NEXT_PUBLIC_DEBUG_ANCHOR=true
- Gate anchor logs behind DEBUG_ANCHOR (useAnchorMarketData, useAnchorPrices,
  useAnchorRewards, useTokenPrices, useMarketPositions, useAnchorMarks,
  useAllStabilityPoolRewards)
- Reduce getBlock polling: sync chain time every 12s, tick locally every 1s
  (useAnchorLedgerMarks, ledger-marks page) - was 60/min, now ~5/min
- Stabilize useAllStabilityPoolRewards: coarse priceAvailabilityKey (ready vs
  waiting), 60s refetch, 30s staleTime
- Increase refetch intervals: useMarketPositions 30s, useWithdrawalRequests
  15s, useProjectedAPR 60s, useMultipleVolatilityProtection 60s,
  useMultipleCollateralPrices 60s, usePeggedTokenPrices 30s, useAnchorMarks 60s
- Add useStaggeredReady to spread multicall burst over ~250ms
- Add ErrorBanner, FeeDisplayRow, parseViemRevert utility

Made-with: Cursor
…, haEUR, etc) and normalize deposit ratio bar

Made-with: Cursor
@vercel
Copy link
Contributor

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
harbor-app Ready Ready Preview, Comment Feb 28, 2026 0:44am
harbor-app-staging (staging) Ready Ready Preview, Comment Feb 28, 2026 0:44am
zhenglong Ready Ready Preview, Comment Feb 28, 2026 0:44am

Request Review

@fabiaz84 fabiaz84 merged commit 49cb96e into main Feb 28, 2026
5 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