Conversation
- 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
Modalrefactor
- 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
…price hook updates Made-with: Cursor
Modalrefactor
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.