Closed ChefJerry closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 14, 2024 3:31pm |
Latest commit: dedc7318e597f908b54b5da61c7b5509c8312fe3
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
PR-Codex overview
This PR focuses on improving the handling of gauge configurations and vote cap percentages in the
GaugesTable
component and thegetAllGauges
function. It ensures safer defaults and filters out killed gauges appropriately.Detailed summary
TableRow.tsx
, updatedmaxCapPercent
to returnnew Percent(data?.maxVoteCap ?? 0, 10000)
for safer default handling.getAllGauges.ts
, modifiedallGaugeInfoConfigs
to filter out killed gauges whenkilled
is true, ensuring only active gauges are processed.