🩹 app: ground date calculations in block timestamp#916
Conversation
🦋 Changeset detectedLatest commit: 9c2f63f The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (31)
WalkthroughAdds a new Changes
Sequence Diagram(s)sequenceDiagram
participant Component as UI Component
participant Hook as useMarkets()
participant ReadContracts as useReadContracts
participant Contracts as On-chain Contracts
Component->>Hook: call useMarkets({ enabled?, refetchInterval? })
Hook->>ReadContracts: batch calls (multicall)
ReadContracts->>Contracts: previewer.exactly(account), ratePreviewer.snapshot(), multicall.getCurrentBlockTimestamp()
Contracts-->>ReadContracts: return [markets, rateSnapshot, blockTimestamp]
ReadContracts-->>Hook: normalize and derive { markets, rateSnapshot, timestamp, firstMaturity }
Hook-->>Component: return { markets, rateSnapshot, timestamp, firstMaturity, refetch, isFetching }
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #916 +/- ##
==========================================
+ Coverage 70.80% 71.57% +0.76%
==========================================
Files 225 227 +2
Lines 8198 8197 -1
Branches 2634 2621 -13
==========================================
+ Hits 5805 5867 +62
+ Misses 2165 2102 -63
Partials 228 228
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Bug Fixes
Performance
UX