mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
Runtime (enforce.ts): compute effectiveWeight = 100/N for each key when the pool's total weight is 0, so pools with all-zero weights (newly created via UI) are usable immediately without a re-save. Original non-zero weights are unchanged. UI (PoolWizard, EditAllocationsModal): addKey now recomputes all weights to an equal split after adding a key, so saved pools store equal weights and never persist all-zero allocations. Tests: tests/unit/quota-equal-split.test.ts (7 scenarios).