Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…rt-view # Conflicts: # packages/defiscan-frontend/public/data/Steakhouse-USDC/compiled-review.json # packages/defiscan-frontend/public/data/index.json # packages/defiscan-frontend/public/data/liquity-v2/compiled-review.json # packages/defiscan-frontend/src/pages/landing/LandingPage.tsx # packages/defiscan-frontend/src/pages/review/views/report/AdminCards.tsx # packages/defiscan-frontend/src/pages/review/views/report/CodeSection.tsx # packages/defiscan-frontend/src/pages/review/views/report/DependencyCards.tsx # packages/defiscan-frontend/src/pages/review/views/report/FundCards.tsx # packages/defiscan-frontend/src/pages/review/views/report/ReportView.tsx
53afb4c to
7dce5b1
Compare
|
test |
|
Logic error: governance-tagged human admins excluded from admin count The The narrative sentence (around line 146) uses Reference: Suggested fix: Either use Note: This review was intended as an inline comment on |
|
Deleting this test comment - posted in error |
|
debug test |
Code review1 issue found. In Inline comment for Logic error: governance-tagged human admins excluded from admin count The The narrative sentence (around line 146) uses Reference: Suggested fix: Either use |
Code review3 issues found: Bug 1 —
Bug 2 —
Bug 3 —
|
|
Removing test comment |
|
inline test body |
|
Code review comment on packages/config/src/projects/liquity-v1/compiled-review.json (line 1): Wrong output location. CLAUDE.md documents compiled-review.json output exclusively to packages/defiscan-frontend/public/data/slug/. The correctly placed copy already exists in this PR at packages/defiscan-frontend/public/data/liquity-v1/compiled-review.json. No other project has compiled-review.json in its config project folder, and reviewCompiler.ts has no code path that writes here. Please remove packages/config/src/projects/liquity-v1/compiled-review.json from this PR. |
|
Code review comment on packages/defiscan-frontend/src/pages/landing/LandingPage.tsx (line 14): HUMAN_ADMIN_TYPES is missing Timelock. This set is inconsistent with compile-data.ts and AdminCards.tsx which both include Timelock. Timelock-type admins are not counted in the landing page Admins column but are counted as human-controlled in compile-data.ts when computing totalTokenValueAtRisk. A protocol with only Timelock admins would show 0 in the table Admins column while still having its token value counted in global stats. Fix: const HUMAN_ADMIN_TYPES = new Set(['EOA', 'EOAPermissioned', 'Multisig', 'Timelock']) |
|
Code review comment on packages/defiscan-frontend/src/pages/review/views/report/AdminCards.tsx (line 146): Admin count and capital figure are drawn from inconsistent populations. The intro sentence says We identified N admins controlling X in locked funds where N = humanControlled.length + governance.length (human-type + governance-tagged admins only) but X = totals.totalCapitalAtRisk (capital reachable by ALL admins including Immutable, plain Contract, and Revoked types). For protocols with immutable contracts controlling funds, X will be larger than what the N named admins actually control, making the sentence misleading. The humanTotal and govTotal variables are already computed just above this JSX. Using humanTotal + govTotal would make count and capital consistent. |
|
@claude review the changes to the explorer view pls |
|
Claude finished @yvesbou's task in 1m 59s —— View job Explorer View Code Review
Overall the explorer view is well-structured: sortable tables, expandable rows, and the Bug 1 — Double-counting in Admin Type Distribution bar (
|
|
@claude review again |
|
Claude finished @yvesbou's task in 3m 45s —— View job Code Review
What's been fixed since the last review
Remaining issuesBug — const maxValue = Math.max(...entries.map((e) => e.value), 0)
// ...
const percentage = maxValue > 0 ? (entry.value / maxValue) * 100 : 0The Bug — const HUMAN_ADMIN_TYPES = new Set(['EOA', 'EOAPermissioned', 'Multisig'])
Bug — The "Direct Funds" footer cell shows Fix: replace with sums over the displayed humanAdmins.reduce((s, a) => s + a.totalDirectCapital, 0) // for Direct Funds
humanAdmins.reduce((s, a) => s + a.functions.length, 0) // for FunctionsMinor / Observation
The intro sentence says "N admins controlling X in locked funds" where
The bezier |
No description provided.