You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a 'Suggest weights' button on Cascades that fetches recent downloads (crates.io API / api.npmjs.org) and allocates the 90% pool proportionally (with a min floor per dep).
Acceptance: pure weighting function with tests (sums exactly to target bps); graceful fallback to equal weights on API errors.
I have completed this bounty in Pull Request #24: #24
Summary of Implementation:
Largest Remainder Method (allocateWeightsByDownloads): Pure function in frontend/src/lib/manifest.ts ensuring the exact sum of weights equals targetBps (9000 bps) with no rounding drift.
Minimum Floor Protection: Each dependency gets at least 50 bps (0.50%) floor when feasible.
Registry Download Fetching: Parallel fetching from crates.io (crate.downloads) and api.npmjs.org (downloads).
Cascades UI Integration: Added 'Suggest weights' action button with loading state beside 'Equalize' in CascadesPage.
Test Suite: 12 new unit tests in frontend/src/lib/__tests__/weights.test.ts. 70/70 vitest tests pass and TypeScript check is 100% clean.
Activity
NePreby commentedon Nov 6, 2026
I have completed this bounty in Pull Request #24: #24
Summary of Implementation:
allocateWeightsByDownloads): Pure function infrontend/src/lib/manifest.tsensuring the exact sum of weights equalstargetBps(9000 bps) with no rounding drift.crates.io(crate.downloads) andapi.npmjs.org(downloads).CascadesPage.frontend/src/lib/__tests__/weights.test.ts. 70/70 vitest tests pass and TypeScript check is 100% clean.Bounty Payout Wallet (TRC20 TRX/USDT):
TMqmJjRgVS21NL2eFtfyHciTxvE4BqGmEv