Skip to content

feat(contracts): implement ADR 026/028/030/031/033/036 deltas - #684

Merged
thiras merged 10 commits into
mainfrom
feat/contracts-adr-036-and-friends
May 28, 2026
Merged

thiras merged 10 commits into
mainfrom
feat/contracts-adr-036-and-friends

Conversation

@thiras

@thiras thiras commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refit the Solidity contract suite to the recent ADR revisions.

  • ADR 036 (served-bytes voting weight): DecdnGovernor rewired — vote source moved from VotingEscrow to FeeRouter.bytesInWindow × age_ramp with CapacityBond.slashedAtEpoch zero-out. VotingEscrow deleted.
  • ADR 026 v2.2 (work-token tokenomics, no-emission): StakingRegistry → CapacityBond with capacity-curve naming, Genesis Bond Credit grant/vest/claim flow, declared-Mbps storage.
  • ADR 028 / 032 / 033 (slash appeals + SafetyReserve): new SafetyReserve with full six-entrypoint appeal state machine, payout queue, slash-inflow accounting.
  • ADR 030 (region attestation): regionPrev/regionLastChanged/updateRegion on CapacityBond.
  • ADR 031 (blacklist appeals): new ContentBlacklist with appeal lifecycle + cross-contract ejectNode wire.
  • New FeeRouter four-bucket distributor (governance-tunable shares within ADR 026 bounds) with the per-epoch served-bytes ledger ADR 036 reads.
  • New BuybackBurner scaffold (reverts SwapNotImplemented until a subclass binds the live Balancer V3 ABI per ADR 018).

Review-driven fixes

This branch went through a multi-agent /code-review after the initial implementation; the following issues surfaced and were fixed in the same commit before pushing:

  • C1 Slashed Genesis Bond Credit now routes through the 50/30/20 split alongside the stake slash, not 100% burn (ADR 026 § Genesis Bond Credits).
  • C2 Defensive cap on _reduceStakeAtTier prevents future tier-bps changes above 50% from silently underflowing.
  • C3 Unbond forfeits unvested credit to a governance-set treasury (or burns if unset).
  • C4 PendingCredit refactored to {originalGrant, claimed, grantedAt}; linear curve no longer skews on partial claims.
  • I1 BuybackBurner.executeBuyback + SafetyReserve.swapAccumulatedTokens revert with SwapNotImplemented instead of emit-and-no-op.
  • I2 CapacityBond.slash mints slashId + persists SlashRecord; SafetyReserve.openSlashAppeal reads operator from CapacityBond.slashRecords (no caller-asserted operator).
  • I3 recordSlashInflow callback wrapped in try/catch — faulty SafetyReserve cannot brick slashing.
  • I4 voteCapBps + ageRampMonths checkpointed via OZ Trace208; in-flight proposals snapshot the prior value.
  • I5 claimVestedCredit gated on activeStake > 0 && !ejected && !slashed.
  • SF-C1 payout returns (incidentId, queued, claimId) tuple; no more type(uint256).max sentinel collision.
  • SF-M1 openBlacklistAppeal reverts on region == bytes32(0); caller must pass GLOBAL_REGION explicitly.
  • Doc Stale StakingRegistry/VotingEscrow references and wrong ADR section anchors cleared across multiple files.

Out of scope (follow-ups)

  • PaymentChannel, SlashJudge, OriginAssignment implementations (not changed by the latest ADR deltas).
  • Live Balancer V3 Vault swap ABI binding for BuybackBurner._performSwap and SafetyReserve.swapAccumulatedTokens (deferred per ADR 018 deployment PR).
  • TWAP-based MAX_APPEAL_RESTITUTION (governance-set USDC ceiling for now; documented in SafetyReserve header).
  • ADR 031 perjury denylist + synthetic-standing clawback + per-body concurrent-appeal cap (per-region cap used for now; documented in ContentBlacklist header).
  • Full ADR 030 updateRegion integration test (smoke test covers cooldown; full e2e requires the EIP-712 + ed25519 registerNode signing harness).

Test plan

  • (cd contracts && forge fmt --check) — clean
  • (cd contracts && forge build --sizes) — all contracts under EIP-170 (CapacityBond 21.6KB / 2.9KB margin tightest)
  • (cd contracts && forge test) — 138/138 pass across 8 test suites
  • cargo build --workspace && cargo clippy --workspace — clean (alloy sol! bindings still match — selectors preserved on CapacityBond)
  • cargo nextest run — 1102/1103 pass; probe_rate_limit_returns_rate_limited_close_code flakes under nextest, passes under cargo test, unrelated to contract changes
  • Slither / aderyn static analysis (deferred to follow-up)
  • gh pr checks — pending CI

🤖 Generated with Claude Code

Refit the Solidity contract suite to the recent ADR revisions: vote weight
moves from ve-balance to served-bytes (036), tokenomics adopts the work-
token v2.2 no-emission model with Genesis Bond Credits and capacity-curve
naming (026), and slash/blacklist appeals get their own state machines
(028, 031, 032, 033).

Contract surface:
- NEW FeeRouter — 4-bucket distributor (60/25/10/5 by default, bounded
  governance-tunable), per-epoch served-bytes accounting, bytesInWindow
  helpers consumed by DecdnGovernor per ADR 036.
- NEW SafetyReserve — payout/incidents ledger, pending-claim FIFO queue,
  slash-inflow accounting, full six-entrypoint ADR 028 appeal state
  machine (open/fastTrack/reject/ratify/reverse/cleanup). reverseAppeal
  clears CapacityBond.slashedAtEpoch via APPEAL_REVERSAL_ROLE.
- NEW BuybackBurner — USDC→TOKEN swap-then-burn scaffold; reverts with
  SwapNotImplemented until a subclass binds the live Balancer V3 ABI.
- NEW ContentBlacklist — hash (global+regional) + operator + origin
  blacklist with ADR 031 appeal entrypoints; cross-contract ejectNode
  wire to CapacityBond.
- RENAMED StakingRegistry → CapacityBond. Additions: firstBondedAt +
  slashedAtEpoch + clearSlashedAtEpoch (ADR 036); regionPrev/Last +
  updateRegion (ADR 030); PendingCredit + Genesis Bond Credit
  grant/vest/claim (ADR 026); declaredMbps; slashId + slashRecords +
  Treasury forfeit path on unbond.
- REWIRED DecdnGovernor — vote source moved from VotingEscrow to
  FeeRouter.bytesInWindow × age_ramp with CapacityBond.slashedAtEpoch
  zero-out per ADR 036. voteCapBps + ageRampMonths checkpointed via OZ
  Trace208 so setter changes don't shift in-flight proposal weights.
- DELETED VotingEscrow + IVotingEscrow + test + mock.

Review-driven fixes applied in this commit (from /code-review run):
- C1 slashed Genesis Bond Credit now routes through 50/30/20 alongside
  the stake-slash amount, not 100% burn.
- C2 defensive cap on _reduceStakeAtTier prevents future tier-bps
  changes above 50% from silently underflowing the unbonding subtraction.
- C3 unbond forfeits unvested credit to a governance-set treasury
  (burns if treasury unset).
- C4 PendingCredit refactored to {originalGrant, claimed, grantedAt} so
  the linear curve no longer skews after a partial claim.
- I1 BuybackBurner.executeBuyback + SafetyReserve.swapAccumulatedTokens
  revert with SwapNotImplemented instead of emit-and-no-op.
- I2 CapacityBond.slash mints slashId + persists SlashRecord; SafetyReserve
  reads operator from CapacityBond.slashRecords instead of caller assertion.
- I3 recordSlashInflow wrapped in try/catch — faulty SafetyReserve cannot
  brick slashing.
- I4 voteCapBps + ageRampMonths use Checkpoints.Trace208; in-flight
  proposals snapshot the prior value.
- I5 claimVestedCredit gated on activeStake>0, !ejected, !slashed.
- SF-C1 payout returns (incidentId, queued, claimId) tuple; no more
  type(uint256).max sentinel collision.
- SF-M1 openBlacklistAppeal reverts on region == bytes32(0).

Tests: 138/138 pass (+29 new across CapacityBond, FeeRouter, SafetyReserve,
ContentBlacklist, DecdnGovernor). Rust workspace builds clean (sol! bindings
unchanged — function selectors preserved). All contracts under EIP-170;
CapacityBond is tightest at 21.6KB / 2.9KB margin.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 27, 2026 20:50
@github-actions

github-actions Bot commented May 27, 2026 •

Copy link
Copy Markdown

Gas snapshot

Gas changes vs base
Compiling 91 files with Solc 0.8.28
Solc 0.8.28 finished in 6.40s
Compiler run successful!

Ran 26 tests for test/CapacityBond.t.sol:CapacityBondTest
[PASS] test_claimVestedCredit_movesIntoActiveStake() (gas: 214330)
[PASS] test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 218946)
[PASS] test_claimVestedCredit_revertsWhenNoActiveStake() (gas: 144394)
[PASS] test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 478976)
[PASS] test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 482020)
[PASS] test_clearSlashedAtEpoch_clears() (gas: 389628)
[PASS] test_clearSlashedAtEpoch_requiresRole() (gas: 13524)
[PASS] test_creditSlash_routesThroughChallengerAndSafety() (gas: 475913)
[PASS] test_declaredMbps_storesValue() (gas: 37816)
[PASS] test_firstBondedAt_immutableAcrossReBonds() (gas: 111434)
[PASS] test_firstBondedAt_setsOnFirstStake() (gas: 102522)
[PASS] test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 246086)
[PASS] test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 281790)
[PASS] test_forfeitUnvestedCredit_onUnbond() (gas: 290469)
[PASS] test_genesisCredit_fullVestAfterDuration() (gas: 141147)
[PASS] test_genesisCredit_grantWithinWindow() (gas: 139043)
[PASS] test_genesisCredit_revertsAfterWindow() (gas: 82695)
[PASS] test_genesisCredit_vestsLinearly() (gas: 141493)
[PASS] test_pendingCreditSlash_reducesOriginalGrant() (gas: 473127)
[PASS] test_slashHitsVestedAndUnvestedTogether() (gas: 516233)
[PASS] test_slashHitsVestedButUnclaimed() (gas: 483695)
[PASS] test_slashId_persistsRecord() (gas: 374509)
[PASS] test_slash_stampsSlashedAtEpoch() (gas: 374635)
[PASS] test_slash_succeedsEvenWhenInflowCallbackReverts() (gas: 335597)
[PASS] test_slashedAtEpoch_zeroBeforeSlash() (gas: 10130)
[PASS] test_updateRegion_cooldownAndPrevSnapshot() (gas: 506989)
Suite result: ok. 26 passed; 0 failed; 0 skipped; finished in 13.99ms (12.64ms CPU time)

Ran 13 tests for test/ContentBlacklist.t.sol:ContentBlacklistTest
[PASS] test_addHashGlobal_andQuery() (gas: 38191)
[PASS] test_addHashRegional_globalTakesPrecedence() (gas: 42002)
[PASS] test_addOperator_callsEjectOnCapacityBond() (gas: 91592)
[PASS] test_fullAppealFlow_ratifyRemovesHash() (gas: 275630)
[PASS] test_hasActiveAppeal_clearedOnLapseOpen() (gas: 242204)
[PASS] test_hasActiveAppeal_clearedOnReject() (gas: 433904)
[PASS] test_hasActiveAppeal_clearedOnReverse() (gas: 255003)
[PASS] test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356697)
[PASS] test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18678)
[PASS] test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243)
[PASS] test_regionalCap_blocksMoreThanThreeActiveAppeals() (gas: 706600)
[PASS] test_rejectAppeal_burnsBond() (gas: 247916)
[PASS] test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 261628)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 4.70ms (3.91ms CPU time)

Ran 11 tests for test/DecdnGovernor.t.sol:DecdnGovernorTest
[PASS] test_getVotes_halfRamp() (gas: 173099)
[PASS] test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405)
[PASS] test_getVotes_ramp() (gas: 173019)
[PASS] test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196807)
[PASS] test_getVotes_uncappedWhenBelowCap() (gas: 173050)
[PASS] test_getVotes_zeroIfNeverBonded() (gas: 93615)
[PASS] test_getVotes_zeroWhenSlashedInWindow() (gas: 119032)
[PASS] test_proposalThreshold_isPointOnePercent() (gas: 71784)
[PASS] test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639)
[PASS] test_setVoteCapBps_enforcesBounds() (gas: 10766)
[PASS] test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4089459)
Suite result: ok. 11 passed; 0 failed; 0 skipped; finished in 10.51ms (7.19ms CPU time)

Ran 9 tests for test/FeeRouter.t.sol:FeeRouterTest
[PASS] test_bytesInWindow_sumsTrailingWindow() (gas: 540826)
[PASS] test_bytesInWindow_zeroWindowReturnsZero() (gas: 9304)
[PASS] test_routeSettlement_distributesFourLegs() (gas: 265962)
[PASS] test_routeSettlement_dustRoutesToOperatorWhenSafetyUnset() (gas: 157187)
[PASS] test_routeSettlement_incrementsBytesPerEpoch() (gas: 251733)
[PASS] test_routeSettlement_revertsWithoutRouterRole() (gas: 89206)
[PASS] test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 15980)
[PASS] test_setShares_rejectsSumNot10000() (gas: 14436)
[PASS] test_setWindowEpochs_enforcesBounds() (gas: 32980)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 4.25ms (3.57ms CPU time)

Ran 44 tests for test/TestnetFaucet.t.sol:TestnetFaucetTest
[PASS] testFuzz_claim_atOrAboveCooldown(uint256) (runs: 1024, μ: 91481, ~: 91528)
[PASS] testFuzz_claim_belowCooldown(uint256) (runs: 1024, μ: 85158, ~: 85389)
[PASS] test_admin_canGrantAndRevokeRoles() (gas: 56401)
[PASS] test_claim_blocksReentrancy() (gas: 1550228)
[PASS] test_claim_happyPath() (gas: 82821)
[PASS] test_claim_perCallerCooldownIndependence() (gas: 133478)
[PASS] test_claim_revertsBeforeCooldown() (gas: 83092)
[PASS] test_claim_revertsOnInsufficientBalance() (gas: 50715)
[PASS] test_claim_revertsOneSecondBeforeCooldownBoundary() (gas: 82996)
[PASS] test_claim_revertsWhenPaused() (gas: 39998)
[PASS] test_claim_succeedsAfterCooldown() (gas: 90430)
[PASS] test_claim_succeedsAtExactCooldownBoundary() (gas: 87103)
[PASS] test_constructor_allowsZeroCooldown() (gas: 1810378)
[PASS] test_constructor_revertsOnCooldownExceedingMax() (gas: 1015061)
[PASS] test_constructor_revertsOnMainnetChainId() (gas: 988198)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 985898)
[PASS] test_constructor_revertsOnZeroClaimAmount() (gas: 988045)
[PASS] test_constructor_revertsOnZeroFunding() (gas: 988061)
[PASS] test_constructor_revertsOnZeroGovernance() (gas: 985864)
[PASS] test_constructor_revertsOnZeroPauser() (gas: 985954)
[PASS] test_constructor_revertsOnZeroTokenAddress() (gas: 70468)
[PASS] test_constructor_revertsOnZeroTreasury() (gas: 987830)
[PASS] test_constructor_revertsWhenTreasuryNotApproved() (gas: 1110690)
[PASS] test_constructor_setsStateAndRoles() (gas: 43070)
[PASS] test_nonAdmin_cannotGrantRoles() (gas: 17889)
[PASS] test_pause_blocksClaimUnpauseRestores() (gas: 91691)
[PASS] test_pause_revertsOnNonPauser() (gas: 14607)
[PASS] test_setClaimAmount_revertsOnNonGovernance() (gas: 14702)
[PASS] test_setClaimAmount_revertsOnZero() (gas: 13338)
[PASS] test_setClaimAmount_updatesAndEmits() (gas: 22083)
[PASS] test_setCooldown_acceptsMaxCooldown() (gas: 20228)
[PASS] test_setCooldown_allowsZero() (gas: 94920)
[PASS] test_setCooldown_revertsOnExceedingMax() (gas: 13790)
[PASS] test_setCooldown_revertsOnNonGovernance() (gas: 14705)
[PASS] test_setCooldown_updatesAndEmits() (gas: 22231)
[PASS] test_timeUntilNext_tracksCooldownWindow() (gas: 82615)
[PASS] test_timeUntilNext_zeroBeforeFirstClaim() (gas: 10099)
[PASS] test_unpause_revertsOnNonPauser() (gas: 43483)
[PASS] test_withdraw_revertsOnInsufficientBalance() (gas: 26877)
[PASS] test_withdraw_revertsOnNonGovernance() (gas: 17089)
[PASS] test_withdraw_revertsOnZeroAmount() (gas: 20838)
[PASS] test_withdraw_revertsOnZeroTo() (gas: 18662)
[PASS] test_withdraw_transfersAndEmits() (gas: 44129)
[PASS] test_withdraw_worksWhilePaused() (gas: 68286)
Suite result: ok. 44 passed; 0 failed; 0 skipped; finished in 264.03ms (260.38ms CPU time)

Ran 10 tests for test/Token.t.sol:TokenTest
[PASS] testFuzz_burn_reducesSupplyByExactAmount(uint256) (runs: 1024, μ: 27799, ~: 27700)
[PASS] test_burnFrom_consumesAllowance() (gas: 38534)
[PASS] test_burn_reducesTotalSupplyAndBalance() (gas: 26044)
[PASS] test_constructor_metadata() (gas: 17896)
[PASS] test_constructor_mintsFullSupplyToHolder() (gas: 12954)
[PASS] test_constructor_revertsOnZeroInitialHolder() (gas: 83264)
[PASS] test_constructor_totalSupplyConstantMatches() (gas: 9364)
[PASS] test_noMintFunctionExposed() (gas: 10765)
[PASS] test_noVotesSurfaceExposed() (gas: 11991)
[PASS] test_permit_setsAllowance() (gas: 67380)
Suite result: ok. 10 passed; 0 failed; 0 skipped; finished in 88.56ms (88.08ms CPU time)

Ran 14 tests for test/SafetyReserve.t.sol:SafetyReserveTest
[PASS] test_availableUsdc_subtractsEscrowLien() (gas: 334020)
[PASS] test_cleanupExpiredAppeal_openLapse() (gas: 247701)
[PASS] test_disbursePending_drainsAfterRefill() (gas: 448281)
[PASS] test_disbursePending_emitsSkippedWhenEmpty() (gas: 15301)
[PASS] test_fullAppealFlow_ratify() (gas: 459773)
[PASS] test_fullAppealFlow_reverseClearsSlashedAtEpoch() (gas: 329364)
[PASS] test_openSlashAppeal_revertsDuplicateSlashId() (gas: 339791)
[PASS] test_openSlashAppeal_revertsUnknownSlash() (gas: 28338)
[PASS] test_openSlashAppeal_validatesOperatorFromCapacityBond() (gas: 275621)
[PASS] test_payout_immediatePay() (gas: 202893)
[PASS] test_payout_queueOnInsufficientLiquidity() (gas: 124540)
[PASS] test_recordSlashInflow_attributesToOperator() (gas: 69520)
[PASS] test_rejectAppeal_burnsBond() (gas: 252406)
[PASS] test_swapAccumulatedTokens_revertsUntilImplemented() (gas: 75826)
Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 2.92ms (1.96ms CPU time)

Ran 26 tests for test/PublisherRegistry.t.sol:PublisherRegistryTest
[PASS] testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (runs: 1024, μ: 750396, ~: 427148)
[PASS] test_claimContent_multiClaimAcrossNamespaces() (gas: 233820)
[PASS] test_claimContent_recordsClaim() (gas: 134733)
[PASS] test_claimContent_revertsForDefaultOpenNamespace() (gas: 13756)
[PASS] test_claimContent_revertsIfNotOwner() (gas: 66829)
[PASS] test_claimContent_revertsOnDuplicateSameNamespace() (gas: 135341)
[PASS] test_constructor_revertsZeroAdmin() (gas: 36674)
[PASS] test_constructor_setsDefaultsAndRoles() (gas: 19037)
[PASS] test_createNamespace_assignsIdsFromOne() (gas: 92750)
[PASS] test_createNamespace_revertsAtCap() (gas: 98492)
[PASS] test_createNamespace_zeroIsNeverAssigned() (gas: 65471)
[PASS] test_namespaceOf_emptyForUnclaimed() (gas: 8273)
[PASS] test_setMaxNamespaces_revertsOutOfBounds() (gas: 17627)
[PASS] test_setMaxNamespaces_revertsWithoutRole() (gas: 13384)
[PASS] test_setMaxNamespaces_withinBounds() (gas: 20687)
[PASS] test_setTransferTimelock_revertsOutOfBounds() (gas: 17706)
[PASS] test_setTransferTimelock_withinBounds() (gas: 20560)
[PASS] test_transfer_cancelByOwner() (gas: 78690)
[PASS] test_transfer_cancelRevertsIfNotOwner() (gas: 93302)
[PASS] test_transfer_finalizeRevertsIfNotPendingOwner() (gas: 93817)
[PASS] test_transfer_finalizeRevertsNoPending() (gas: 68566)
[PASS] test_transfer_fullFlow() (gas: 98658)
[PASS] test_transfer_initiateRevertsIfNotOwner() (gas: 66923)
[PASS] test_transfer_initiateRevertsZeroNewOwner() (gas: 64330)
[PASS] test_transfer_revertsWhenRecipientAtCap() (gas: 150145)
[PASS] test_transfer_selfTransferExemptFromCap() (gas: 95404)
Suite result: ok. 26 passed; 0 failed; 0 skipped; finished in 669.77ms (670.34ms CPU time)

Ran 8 test suites in 675.52ms (1.06s CPU time): 153 tests passed, 0 failed, 0 skipped (153 total tests)
━ CapacityBondTest::test_claimVestedCredit_movesIntoActiveStake() (gas: 214330 → 214330 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 218946 → 218946 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_revertsWhenNoActiveStake() (gas: 144394 → 144394 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 478976 → 478976 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 482020 → 482020 | 0 0.000%)
━ CapacityBondTest::test_clearSlashedAtEpoch_clears() (gas: 389628 → 389628 | 0 0.000%)
━ CapacityBondTest::test_clearSlashedAtEpoch_requiresRole() (gas: 13524 → 13524 | 0 0.000%)
━ CapacityBondTest::test_creditSlash_routesThroughChallengerAndSafety() (gas: 475913 → 475913 | 0 0.000%)
━ CapacityBondTest::test_declaredMbps_storesValue() (gas: 37816 → 37816 | 0 0.000%)
━ CapacityBondTest::test_firstBondedAt_immutableAcrossReBonds() (gas: 111434 → 111434 | 0 0.000%)
━ CapacityBondTest::test_firstBondedAt_setsOnFirstStake() (gas: 102522 → 102522 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 246086 → 246086 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 281790 → 281790 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_onUnbond() (gas: 290469 → 290469 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_fullVestAfterDuration() (gas: 141147 → 141147 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_grantWithinWindow() (gas: 139043 → 139043 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_revertsAfterWindow() (gas: 82695 → 82695 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_vestsLinearly() (gas: 141493 → 141493 | 0 0.000%)
━ CapacityBondTest::test_pendingCreditSlash_reducesOriginalGrant() (gas: 473127 → 473127 | 0 0.000%)
━ CapacityBondTest::test_slashHitsVestedAndUnvestedTogether() (gas: 516233 → 516233 | 0 0.000%)
━ CapacityBondTest::test_slashHitsVestedButUnclaimed() (gas: 483695 → 483695 | 0 0.000%)
━ CapacityBondTest::test_slashId_persistsRecord() (gas: 374509 → 374509 | 0 0.000%)
━ CapacityBondTest::test_slash_stampsSlashedAtEpoch() (gas: 374635 → 374635 | 0 0.000%)
━ CapacityBondTest::test_slash_succeedsEvenWhenInflowCallbackReverts() (gas: 335597 → 335597 | 0 0.000%)
━ CapacityBondTest::test_slashedAtEpoch_zeroBeforeSlash() (gas: 10130 → 10130 | 0 0.000%)
━ CapacityBondTest::test_updateRegion_cooldownAndPrevSnapshot() (gas: 506989 → 506989 | 0 0.000%)
━ ContentBlacklistTest::test_addHashGlobal_andQuery() (gas: 38191 → 38191 | 0 0.000%)
━ ContentBlacklistTest::test_addHashRegional_globalTakesPrecedence() (gas: 42002 → 42002 | 0 0.000%)
━ ContentBlacklistTest::test_addOperator_callsEjectOnCapacityBond() (gas: 91592 → 91592 | 0 0.000%)
━ ContentBlacklistTest::test_fullAppealFlow_ratifyRemovesHash() (gas: 275630 → 275630 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnLapseOpen() (gas: 242204 → 242204 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReject() (gas: 433904 → 433904 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReverse() (gas: 255003 → 255003 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356697 → 356697 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18678 → 18678 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243 → 16243 | 0 0.000%)
━ ContentBlacklistTest::test_regionalCap_blocksMoreThanThreeActiveAppeals() (gas: 706600 → 706600 | 0 0.000%)
━ ContentBlacklistTest::test_rejectAppeal_burnsBond() (gas: 247916 → 247916 | 0 0.000%)
━ ContentBlacklistTest::test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 261628 → 261628 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_halfRamp() (gas: 173099 → 173099 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405 → 221405 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_ramp() (gas: 173019 → 173019 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196807 → 196807 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_uncappedWhenBelowCap() (gas: 173050 → 173050 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroIfNeverBonded() (gas: 93615 → 93615 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroWhenSlashedInWindow() (gas: 119032 → 119032 | 0 0.000%)
━ DecdnGovernorTest::test_proposalThreshold_isPointOnePercent() (gas: 71784 → 71784 | 0 0.000%)
━ DecdnGovernorTest::test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639 → 71639 | 0 0.000%)
━ DecdnGovernorTest::test_setVoteCapBps_enforcesBounds() (gas: 10766 → 10766 | 0 0.000%)
━ DecdnGovernorTest::test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4089459 → 4089459 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_sumsTrailingWindow() (gas: 540826 → 540826 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_zeroWindowReturnsZero() (gas: 9304 → 9304 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_distributesFourLegs() (gas: 265962 → 265962 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_dustRoutesToOperatorWhenSafetyUnset() (gas: 157187 → 157187 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_incrementsBytesPerEpoch() (gas: 251733 → 251733 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_revertsWithoutRouterRole() (gas: 89206 → 89206 | 0 0.000%)
━ FeeRouterTest::test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 15980 → 15980 | 0 0.000%)
━ FeeRouterTest::test_setShares_rejectsSumNot10000() (gas: 14436 → 14436 | 0 0.000%)
━ FeeRouterTest::test_setWindowEpochs_enforcesBounds() (gas: 32980 → 32980 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_multiClaimAcrossNamespaces() (gas: 233820 → 233820 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_recordsClaim() (gas: 134733 → 134733 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsForDefaultOpenNamespace() (gas: 13756 → 13756 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsIfNotOwner() (gas: 66829 → 66829 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsOnDuplicateSameNamespace() (gas: 135341 → 135341 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_revertsZeroAdmin() (gas: 36674 → 36674 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_setsDefaultsAndRoles() (gas: 19037 → 19037 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_assignsIdsFromOne() (gas: 92750 → 92750 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_revertsAtCap() (gas: 98492 → 98492 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_zeroIsNeverAssigned() (gas: 65471 → 65471 | 0 0.000%)
━ PublisherRegistryTest::test_namespaceOf_emptyForUnclaimed() (gas: 8273 → 8273 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsOutOfBounds() (gas: 17627 → 17627 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsWithoutRole() (gas: 13384 → 13384 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_withinBounds() (gas: 20687 → 20687 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_revertsOutOfBounds() (gas: 17706 → 17706 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_withinBounds() (gas: 20560 → 20560 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelByOwner() (gas: 78690 → 78690 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelRevertsIfNotOwner() (gas: 93302 → 93302 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsIfNotPendingOwner() (gas: 93817 → 93817 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsNoPending() (gas: 68566 → 68566 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_fullFlow() (gas: 98658 → 98658 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsIfNotOwner() (gas: 66923 → 66923 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsZeroNewOwner() (gas: 64330 → 64330 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_revertsWhenRecipientAtCap() (gas: 150145 → 150145 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_selfTransferExemptFromCap() (gas: 95404 → 95404 | 0 0.000%)
━ SafetyReserveTest::test_availableUsdc_subtractsEscrowLien() (gas: 334020 → 334020 | 0 0.000%)
━ SafetyReserveTest::test_cleanupExpiredAppeal_openLapse() (gas: 247701 → 247701 | 0 0.000%)
━ SafetyReserveTest::test_disbursePending_drainsAfterRefill() (gas: 448281 → 448281 | 0 0.000%)
━ SafetyReserveTest::test_disbursePending_emitsSkippedWhenEmpty() (gas: 15301 → 15301 | 0 0.000%)
━ SafetyReserveTest::test_fullAppealFlow_ratify() (gas: 459773 → 459773 | 0 0.000%)
━ SafetyReserveTest::test_fullAppealFlow_reverseClearsSlashedAtEpoch() (gas: 329364 → 329364 | 0 0.000%)
━ SafetyReserveTest::test_openSlashAppeal_revertsDuplicateSlashId() (gas: 339791 → 339791 | 0 0.000%)
━ SafetyReserveTest::test_openSlashAppeal_revertsUnknownSlash() (gas: 28338 → 28338 | 0 0.000%)
━ SafetyReserveTest::test_openSlashAppeal_validatesOperatorFromCapacityBond() (gas: 275621 → 275621 | 0 0.000%)
━ SafetyReserveTest::test_payout_immediatePay() (gas: 202893 → 202893 | 0 0.000%)
━ SafetyReserveTest::test_payout_queueOnInsufficientLiquidity() (gas: 124540 → 124540 | 0 0.000%)
━ SafetyReserveTest::test_recordSlashInflow_attributesToOperator() (gas: 69520 → 69520 | 0 0.000%)
━ SafetyReserveTest::test_rejectAppeal_burnsBond() (gas: 252406 → 252406 | 0 0.000%)
━ SafetyReserveTest::test_swapAccumulatedTokens_revertsUntilImplemented() (gas: 75826 → 75826 | 0 0.000%)
━ TestnetFaucetTest::testFuzz_claim_atOrAboveCooldown(uint256) (gas: 91528 → 91528 | 0 0.000%)
━ TestnetFaucetTest::testFuzz_claim_belowCooldown(uint256) (gas: 85389 → 85389 | 0 0.000%)
━ TestnetFaucetTest::test_admin_canGrantAndRevokeRoles() (gas: 56401 → 56401 | 0 0.000%)
━ TestnetFaucetTest::test_claim_blocksReentrancy() (gas: 1550228 → 1550228 | 0 0.000%)
━ TestnetFaucetTest::test_claim_happyPath() (gas: 82821 → 82821 | 0 0.000%)
━ TestnetFaucetTest::test_claim_perCallerCooldownIndependence() (gas: 133478 → 133478 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsBeforeCooldown() (gas: 83092 → 83092 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsOnInsufficientBalance() (gas: 50715 → 50715 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsOneSecondBeforeCooldownBoundary() (gas: 82996 → 82996 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsWhenPaused() (gas: 39998 → 39998 | 0 0.000%)
━ TestnetFaucetTest::test_claim_succeedsAfterCooldown() (gas: 90430 → 90430 | 0 0.000%)
━ TestnetFaucetTest::test_claim_succeedsAtExactCooldownBoundary() (gas: 87103 → 87103 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_allowsZeroCooldown() (gas: 1810378 → 1810378 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnCooldownExceedingMax() (gas: 1015061 → 1015061 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnMainnetChainId() (gas: 988198 → 988198 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroAdmin() (gas: 985898 → 985898 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroClaimAmount() (gas: 988045 → 988045 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroFunding() (gas: 988061 → 988061 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroGovernance() (gas: 985864 → 985864 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroPauser() (gas: 985954 → 985954 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroTokenAddress() (gas: 70468 → 70468 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroTreasury() (gas: 987830 → 987830 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsWhenTreasuryNotApproved() (gas: 1110690 → 1110690 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_setsStateAndRoles() (gas: 43070 → 43070 | 0 0.000%)
━ TestnetFaucetTest::test_nonAdmin_cannotGrantRoles() (gas: 17889 → 17889 | 0 0.000%)
━ TestnetFaucetTest::test_pause_blocksClaimUnpauseRestores() (gas: 91691 → 91691 | 0 0.000%)
━ TestnetFaucetTest::test_pause_revertsOnNonPauser() (gas: 14607 → 14607 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_revertsOnNonGovernance() (gas: 14702 → 14702 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_revertsOnZero() (gas: 13338 → 13338 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_updatesAndEmits() (gas: 22083 → 22083 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_acceptsMaxCooldown() (gas: 20228 → 20228 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_allowsZero() (gas: 94920 → 94920 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_revertsOnExceedingMax() (gas: 13790 → 13790 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_revertsOnNonGovernance() (gas: 14705 → 14705 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_updatesAndEmits() (gas: 22231 → 22231 | 0 0.000%)
━ TestnetFaucetTest::test_timeUntilNext_tracksCooldownWindow() (gas: 82615 → 82615 | 0 0.000%)
━ TestnetFaucetTest::test_timeUntilNext_zeroBeforeFirstClaim() (gas: 10099 → 10099 | 0 0.000%)
━ TestnetFaucetTest::test_unpause_revertsOnNonPauser() (gas: 43483 → 43483 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnInsufficientBalance() (gas: 26877 → 26877 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnNonGovernance() (gas: 17089 → 17089 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnZeroAmount() (gas: 20838 → 20838 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnZeroTo() (gas: 18662 → 18662 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_transfersAndEmits() (gas: 44129 → 44129 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_worksWhilePaused() (gas: 68286 → 68286 | 0 0.000%)
━ TokenTest::testFuzz_burn_reducesSupplyByExactAmount(uint256) (gas: 27700 → 27700 | 0 0.000%)
━ TokenTest::test_burnFrom_consumesAllowance() (gas: 38534 → 38534 | 0 0.000%)
━ TokenTest::test_burn_reducesTotalSupplyAndBalance() (gas: 26044 → 26044 | 0 0.000%)
━ TokenTest::test_constructor_metadata() (gas: 17896 → 17896 | 0 0.000%)
━ TokenTest::test_constructor_mintsFullSupplyToHolder() (gas: 12954 → 12954 | 0 0.000%)
━ TokenTest::test_constructor_revertsOnZeroInitialHolder() (gas: 83264 → 83264 | 0 0.000%)
━ TokenTest::test_constructor_totalSupplyConstantMatches() (gas: 9364 → 9364 | 0 0.000%)
━ TokenTest::test_noMintFunctionExposed() (gas: 10765 → 10765 | 0 0.000%)
━ TokenTest::test_noVotesSurfaceExposed() (gas: 11991 → 11991 | 0 0.000%)
━ TokenTest::test_permit_setsAllowance() (gas: 67380 → 67380 | 0 0.000%)
↓ PublisherRegistryTest::testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (gas: 427490 → 427148 | -342 -0.080%)

--------------------------------------------------------------------------------
Total tests: 153, ↑ 0, ↓ 1, ━ 152
Overall gas change: -342 (-0.001%)

Run: 26574856822

@github-actions

github-actions Bot commented May 27, 2026 •

Copy link
Copy Markdown

Contracts coverage

Line coverage: 67.81% (853/1258 lines)
▼ -26.04pp vs base (93.85% → 67.81%)
Run: 26574856822

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a major architectural shift, replacing the StakingRegistry with CapacityBond and transitioning DecdnGovernor from a VotingEscrow model to a served-bytes-weighted voting model (ADR 036). It also adds BuybackBurner, ContentBlacklist, FeeRouter, and SafetyReserve to support the updated tokenomics, slashing splits, and appeal lifecycles. The review feedback highlights several critical issues: a potential revert in FeeRouter due to rounding dust being sent to an unset safety reserve, retroactive voting weight zero-out in DecdnGovernor, state override bugs in ContentBlacklist during concurrent appeals, duplicate appeal vulnerabilities in SafetyReserve, and permanent credit claim lockouts in CapacityBond after any historical slash.

Comment thread contracts/src/FeeRouter.sol Resolved
Comment thread contracts/src/DecdnGovernor.sol Resolved
Comment thread contracts/src/ContentBlacklist.sol Resolved
Comment thread contracts/src/SafetyReserve.sol Resolved
Comment thread contracts/src/CapacityBond.sol Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the Solidity contract suite to align with updated ADRs (notably ADR 036 served-bytes voting, ADR 026 tokenomics changes, and ADR 028/031 appeals), replacing the legacy VotingEscrow/StakingRegistry model with the new FeeRouter + CapacityBond + SafetyReserve + ContentBlacklist architecture and corresponding tests/mocks.

Changes:

  • Replaced ve-style governance weight with ADR 036 served-bytes vote weight via FeeRouter accounting + CapacityBond tenure/slash gating in DecdnGovernor.
  • Introduced/updated core protocol contracts: FeeRouter, SafetyReserve (payout + slash appeals), ContentBlacklist (blacklist + appeals), and BuybackBurner scaffold.
  • Replaced legacy tests/mocks with new smoke tests covering the updated contract surfaces and removed obsolete VotingEscrow / StakingRegistry artifacts.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
contracts/testnet/TestnetFaucet.sol Updates doc reference from StakingRegistry to CapacityBond.
contracts/test/VotingEscrow.t.sol Removes obsolete VotingEscrow tests.
contracts/test/StakingRegistry.t.sol Removes obsolete StakingRegistry tests.
contracts/test/SafetyReserve.t.sol Adds smoke tests for payout queue + slash-appeal state machine.
contracts/test/FeeRouter.t.sol Adds tests for four-bucket settlement routing + epoch byte accounting.
contracts/test/DecdnGovernor.t.sol Replaces VE-based governor tests with ADR 036 served-bytes vote-weight tests.
contracts/test/ContentBlacklist.t.sol Adds smoke tests for blacklist + appeal lifecycle + eject wiring.
contracts/test/CapacityBond.t.sol Adds smoke tests for bonding timestamps, slash epoch, genesis credit flow, and slash records.
contracts/test/mocks/MockVotingEscrow.sol Removes obsolete VE vote-source mock.
contracts/test/mocks/MockSafetyReserve.sol Expands mock to revert loudly on unimplemented paths; keeps recordSlashInflow for slash-redirect assertions.
contracts/test/mocks/MockFeeRouter.sol Adds mock FeeRouter to inject served-bytes totals for governor math tests.
contracts/test/mocks/MockEd25519Verifier.sol Updates doc comment to reference CapacityBond call sites.
contracts/test/mocks/MockCapacityBond.sol Adds mock CapacityBond exposing firstBondedAt, slashedAtEpoch, and slashRecords.
contracts/src/VotingEscrow.sol Removes legacy VE contract.
contracts/src/StakingRegistry.sol Removes legacy staking/registry contract superseded by CapacityBond.
contracts/src/SafetyReserve.sol Adds SafetyReserve implementation (payouts, queue, slash inflow accounting, slash appeals).
contracts/src/FeeRouter.sol Adds FeeRouter implementation (four-bucket settlement + per-epoch served-bytes accounting).
contracts/src/DecdnGovernor.sol Rewires governor vote weight/quorum/threshold to ADR 036 formula and checkpoints cap/ramp params.
contracts/src/ContentBlacklist.sol Adds blacklist + appeals contract and CapacityBond.ejectNode wiring.
contracts/src/BuybackBurner.sol Adds buyback/burn scaffold that intentionally reverts until swap ABI is implemented.
contracts/src/Token.sol Updates docs to reflect new governance weight source and staking entrypoint.
contracts/src/interfaces/IVotingEscrow.sol Removes obsolete VE interface.
contracts/src/interfaces/ISafetyReserve.sol Expands interface to full SafetyReserve external surface.
contracts/src/interfaces/IFeeRouter.sol Adds FeeRouter external interface used by governor/tests.
contracts/src/interfaces/ICapacityBond.sol Adds CapacityBond cross-contract interface for governor + SafetyReserve.
contracts/src/interfaces/IEd25519Verifier.sol Updates docs to reflect CapacityBond onboarding paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contracts/src/FeeRouter.sol Resolved
Comment thread contracts/src/FeeRouter.sol Resolved
thiras and others added 8 commits May 28, 2026 00:33
CI on the initial PR failed on three jobs:

- `solidity build+test` (`forge build --sizes --deny warnings`) tripped on
  an "unreachable code" warning in OZ ReentrancyGuard, caused by stub-swap
  functions that always reverted while carrying `nonReentrant`.
- `solidity aderyn` flagged H-1 (state change after external view call in
  `openSlashAppeal`) and H-2 (storage→memory copy into helper params).
- `solidity slither` flagged `reentrancy-no-eth` in `requestUnstake`,
  `unused-return` on `Trace208.push`, and `incorrect-equality` on
  internally-computed amount guards.

Fixes:

- BuybackBurner: marked `abstract`; `_performSwap` is now an abstract hook
  (no body). Solc treats the virtual call as opaque, so the unreachable-
  code propagation from a return-0 base body is gone. Deployment PRs
  subclass and supply the real Balancer V3 swap.
- SafetyReserve.swapAccumulatedTokens: dropped `nonReentrant` (function
  always reverts in this revision, so `_nonReentrantAfter` was
  unreachable). Added a `SwapAttempted` emit before the revert so solc
  classifies the function as state-mutating (otherwise it would warn
  "Function state mutability can be restricted to view" — also fatal
  under `--deny-warnings`). Documented that subclasses with a real swap
  MUST re-add `nonReentrant`.
- SafetyReserve.openSlashAppeal: state writes now happen BEFORE the
  external `safeTransferFrom` (strict CEI per aderyn H-1). Added an
  aderyn-ignore-next-line for the prior `capacityBond.slashRecords` view
  call — the analyzer flags any external call before a later state write
  regardless of mutability; the call site is a view on a trusted
  immutable contract.
- CapacityBond.requestUnstake: state mutation (activeStake, unbondingOf)
  now precedes the `_forfeitUnvestedCredit` call that does `token.burn` /
  `safeTransfer` — slither reentrancy-no-eth fix.
- CapacityBond: refactored `_curveVestedFromMem(PendingCredit memory)` →
  `_curveVested(address)` reading storage directly. ContentBlacklist
  refactored `_isLive(HashEntry memory)` → `_isLive(bytes32 region,
  bytes32 hash)` for the same reason — both close aderyn H-2.
- DecdnGovernor: added `// slither-disable-next-line unused-return` on
  the three `Trace208.push` call sites that intentionally discard the
  return tuple.
- CapacityBond: added `// slither-disable-next-line incorrect-equality`
  directives on the four internal-amount guards (`unvested == 0`,
  `slashed == 0`, `claimable == 0`) — these are derived amounts, not
  token-balance reads, so the dangerous-strict-equality detector is a
  false positive here.

Tests: 138/138 still pass. Aderyn: 0 highs (was 2). Slither: exit 0 under
`fail_on: medium` (was failing on reentrancy-no-eth + unused-return +
incorrect-equality).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
CI on the second run still failed on two jobs:

- `solidity build+test`: forge-lint flagged 57 `unsafe-typecast` warnings
  (every `bytes32("literal")` event-key cast and every
  `uint64(block.timestamp / EPOCH_LENGTH)` epoch derivation) plus 6
  `erc20-unchecked-transfer` warnings in test files. All warnings are
  safe (short string literals; long-lifetime timestamps; tests against
  the project's own OZ ERC20 which always returns true). `--deny
  warnings` made them fatal.
- `solidity slither`: one `unused-return` slipped through because the
  `slither-disable-next-line` directive was followed by an
  `aderyn-ignore-next-line` comment on the next line — slither's
  "next-line" matched the aderyn comment, not the actual call.

Fixes:

- foundry.toml: added `[lint]` section with `exclude_lints =
  ["unsafe-typecast", "erc20-unchecked-transfer"]`. Documented why both
  are safe to suppress globally.
- SafetyReserve.openSlashAppeal: reordered the suppression comments so
  `slither-disable-next-line unused-return` is the LAST comment before
  the destructuring call site.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
CI run on 05f9e26 had `solidity build+test` and `solidity slither` green
but `solidity aderyn` regressed (back to 1 high). Root cause: my prior
ordering of suppression comments put the slither directive on the line
immediately before the call and the aderyn directive one line above the
slither directive — so aderyn's `next-line` matched the slither comment
instead of the actual call.

Slither attributes `unused-return` to the enclosing function, not the
call site, so the directive belongs at the function declaration. Moving
`// slither-disable-next-line unused-return` directly above
`function openSlashAppeal(...)` clears slither without requiring any
intermediate comment between the aderyn directive and the call site.

The aderyn directive is now the immediate predecessor of the call line
(no slither comment in between). Both analyzers see their suppression
in scope.

Verified locally: aderyn `| High | 0 |`, slither `exit=0`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
PR #684 received inline review from gemini-code-assist (1 critical, 3
high, 1 medium) and Copilot (1 low + 1 dup of critical). All findings
verified against the code and addressed:

- **G-1 (critical) / Copilot-1 — FeeRouter rounding dust → address(0)**
  `safetyShare` was the rounding remainder. When `shares[BUCKET_SAFETY] == 0`
  but `safetyReserve == address(0)` (allowed for inactive bucket), dust
  triggered `safeTransfer(address(0), 1 wei)` and bricked settlements.
  Swap the remainder to the operator leg — operator share is always
  ≥ `OPERATOR_BPS_FLOOR` (4000 bps) and its destination is always
  non-zero (per-call argument).

- **G-2 (high) — DecdnGovernor retroactive slash zero-out**
  `_slashedInWindow` returned true for any slash whose epoch ≥ windowStart
  of a HISTORICAL timepoint, retroactively zeroing votes on past proposals.
  Bound the check at `slashed <= endEpoch` so only slashes that had
  already happened by the proposal snapshot can zero its weight.

- **G-3 (high) — ContentBlacklist concurrent appeal override**
  Multiple appeals could be opened + fast-tracked for the same
  `(region, hash)`. When one terminated (reject/lapse/reverse), it cleared
  `_hashEntries[region][hash].suspended` — un-suspending the entry under
  any still-live appeals. Added `hasActiveAppeal[region][hash]` boolean
  guard: `openBlacklistAppeal` reverts with `AppealAlreadyActive` if a
  live appeal already exists for that pair; every terminal transition
  (reject / ratify / reverse / cleanup-lapse) clears the flag.

- **G-4 (high) — SafetyReserve duplicate appeals on same slashId**
  Without a guard, multiple appeals could be opened on a single slashId
  and each ratified up to `maxAppealRestitution`, draining the reserve.
  Added `slashAppealed[slashId]` one-shot guard; subsequent
  `openSlashAppeal` calls revert with `SlashAlreadyAppealed`. Set on
  successful open, never cleared (the slashId is one event; a rejected
  appeal is final).

- **G-5 (medium) — CapacityBond `SlashedInWindowForClaim` locked claims forever**
  The gate was `if (_slashedAtEpoch[op] != 0) revert` — a slash from a
  year ago still blocks the claim because `_slashedAtEpoch` is only
  cleared by `reverseAppeal`. Added `CLAIM_SLASH_GATE_EPOCHS = 13`
  (matches the default `FeeRouter.windowEpochs`) and gate on
  `currentEpoch < slashEpoch + 13`. Added a new test
  `test_claimVestedCredit_succeedsAfterSlashGateExpires`.

- **Copilot-2 (low) — FeeRouter unused error**
  Removed `NonZeroDestinationNeedsShare` — declared but never thrown.

Verification:
- 139/139 Foundry tests pass (added 1 new for the slash-gate expiry).
- `FOUNDRY_PROFILE=ci forge build --sizes --deny warnings` clean.
- `aderyn` reports `| High | 0 |`.
- `slither --config-file slither.config.json` exits 0 under `fail_on: medium`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…-1..T-4)

After the 2nd internal multi-agent review on the post-`dcf44a9` state,
applies remaining findings.

**F-1 — Swap stubs not overridable.** SafetyReserve `swapAccumulatedTokens`
is now `virtual` and calls a `_doSwap` internal virtual hook; the outer
function keeps `nonReentrant` because solc cannot propagate the base
hook's revert through the virtual call. Subclasses override `_doSwap`,
not the external entrypoint. BuybackBurner `executeBuyback` is now
`virtual` for symmetry.

**S-6 — BuybackBurner burn invariant.** `executeBuyback` reads the
TOKEN balance before/after `_performSwap`, asserts the delta matches the
subclass-reported `tokenOut`, reverts with `SwapReportMismatch` on
under/over-report. Burns the actual delta. Closes the trust boundary.

**S-1 — `claimSlashGateEpochs` governance-tunable storage.** Promoted
from `internal constant` to `uint64 public`, default 13, bounded
`[4, 26]` to match FeeRouter. New `setClaimSlashGateEpochs` setter lets
governance keep this in lock-step with `FeeRouter.windowEpochs`.

**S-5 — Slash-inflow failure event surfaces reason + slashId.**
`catch (bytes memory reason)` captures the revert reason from
`recordSlashInflow`. Event is now
`SlashInflowReportFailed(slashId, operator, amount, reason)`. `slashId`
threads `slash() → _distributeAndStamp → _routeSlashShares`.

**S-2/S-3 — Docstring fixes on the claim gate.** Updated NatSpec.

**S-4 — Dropped reviewer-bot attribution.** Replaced 5
"gemini-code-assist" mentions with descriptive bug-class phrasing.

**T-1 — FeeRouter dust-to-opShare regression test.**
**T-2 — SafetyReserve duplicate-appeal revert test.**
**T-3 — ContentBlacklist `AppealAlreadyActive` + 3× clear-on-terminal tests.**
**T-4 — DecdnGovernor retroactive-slash bound test.**

Verification:
- 146/146 Foundry tests pass (was 139; +7 new).
- `forge build --sizes --deny warnings` clean.
- `aderyn` reports `| High | 0 |`.
- `slither` exit 0 under `fail_on: medium`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…5740)

The F-1 fix in 98ed731 added `nonReentrant` back to
`swapAccumulatedTokens` via the `_doSwap` virtual hook on the
assumption that solc would treat the virtual call as opaque for
reachability analysis. CI's clean rebuild proved otherwise — solc
inlines/sees the concrete base `_doSwap` body and propagates its
revert, making `_nonReentrantAfter` unreachable and tripping warning
5740 under `--deny-warnings`.

Reverting to the pre-F-1 state for `nonReentrant`:
- `swapAccumulatedTokens` keeps `virtual` so subclasses can override.
- `nonReentrant` is dropped on the base; documented as a checklist
  item for production subclasses with a real swap.
- `_doSwap` keeps the `emit SwapAttempted` so solc still classifies the
  function as state-mutating (avoids the "can be view" warning).

`BuybackBurner.executeBuyback` is unaffected — `_performSwap` is truly
abstract there (no body), so solc can't propagate.

146/146 tests still pass; CI build clean post-revert.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…chas

- Refresh the stale contract list (Token, VotingEscrow, StakingRegistry,
  PublisherRegistry, DecdnGovernor) → matches the actual surface on this
  branch (Token, CapacityBond, FeeRouter, SafetyReserve, BuybackBurner,
  ContentBlacklist, PublisherRegistry, DecdnGovernor).
- Update the contracts test command to mirror CI exactly:
  FOUNDRY_PROFILE=ci forge build --sizes --deny warnings, plus aderyn
  and slither at their respective fail thresholds.
- New "Solidity CI gotchas" subsection capturing the traps hit during
  this PR: solc W5740 (unreachable _nonReentrantAfter) when nonReentrant
  meets an always-reverting body; virtual hooks with concrete bodies
  don't fool solc's reachability analysis; forge-lint suppressions in
  foundry.toml [lint] exclude_lints; slither/aderyn directive placement
  rules; slither unused-return attributes to function; forge-fmt vs
  solhint 120-char tie-breaker (positional args); emit-before-revert
  dodges "can be view"; pre-commit re-stage workflow.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ochs, epoch invariant)

Source fixes the prior multi-agent review flagged as in-scope:

- `_forfeitUnvestedCredit` retroactive clawback: stamps `FULLY_VESTED_SENTINEL`
  on `pc.grantedAt` so the truncated principal is immediately fully vested
  on the next curve read. Pre-fix, an operator who claimed partway through
  vesting and then unbonded lost the vested-but-unclaimed portion because
  the curve re-stretched the smaller principal over the original timeline.
- `FeeRouter.windowEpochs` checkpointing: replaces the live storage read
  with an OZ `Trace208` history (mirrors the I4 pattern on `voteCapBps`),
  exposes `windowEpochsAt(timepoint)`, and rewires `DecdnGovernor`'s
  `quorum` / `proposalThreshold` / `_slashedInWindow` / `_cappedServed`
  to the snapshot read. Closes the silent mid-vote weight-drift seam.
- `FeeRouter` constructor asserts `epochLength_` equals
  `CapacityBond.epochLength()`. New `EpochLengthMismatch` error + new
  `epochLength()` accessor on `CapacityBond` (and the local
  `ICapacityBondReporter` interface) close the silent epoch-mis-anchor
  footgun where `DecdnGovernor._slashedInWindow` would mix incompatible
  epoch indices.
- Spec deviations documented inline: `UNBONDING_PERIOD_*` bounds vs ADR
  009 (`CapacityBond`), `APPEAL_BOND_*` bounds vs ADR 011 (`ContentBlacklist`).
- `ICapacityBond.firstBondedAt` NatSpec corrected to match the impl
  (set from `stake()` / `claimVestedCredit()`, not from `register*`).

Test additions covering the headline invariants the suite did not
previously exercise:

- I3 try/catch: `MockSafetyReserve` gains a `setRevertOnRecordSlashInflow`
  toggle; `test_slash_succeedsEvenWhenInflowCallbackReverts` proves the
  slash advances `slashCounter` and skips the inflow row when the
  callback reverts.
- I4 Trace208 snapshot: `TestableDecdnGovernor` subclass exposes a
  privileged `pushVoteCapBpsForTest`;
  `test_voteCapBpsAt_preservesPriorReadAfterLaterPush` proves
  `voteCapBpsAt(historicalTp)` and `getVotes(operator, historicalTp)`
  stay anchored to the prior cap after a later push.
- ADR 030 `updateRegion` cooldown: `test_updateRegion_cooldownAndPrevSnapshot`
  drives the full `stake -> registerNode -> updateRegion x2` flow with a
  key-derived operator + EIP-712 binding signature, asserting the
  first call has no cooldown, the second inside the window reverts,
  and `regionPrev` snapshots the prior region.
- `FeeRouter.routeSettlement` role gate:
  `test_routeSettlement_revertsWithoutRouterRole` locks the access-
  control invariant that prevents any account from inflating its own
  per-epoch served-bytes (= governance voting weight).
- Regression: `test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed`
  pins the sentinel fix.

`MockFeeRouter` gains a `windowEpochsAt` impl. Mock `MockBondReporter`
in the FeeRouter test gains an `epochLength()` impl to satisfy the new
constructor check.

`.gas-snapshot` regenerated via `FOUNDRY_PROFILE=ci forge snapshot`.

Verified: `forge fmt --check` clean, `FOUNDRY_PROFILE=ci forge build
--deny warnings` clean, `forge test` -> 151/151 pass (was 138).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@thiras
thiras requested a review from Copilot May 27, 2026 23:45
@thiras

thiras commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the protocol's core contracts, replacing the StakingRegistry with CapacityBond and transitioning from a ve-token voting model to a served-bytes-weighted voting mechanism in DecdnGovernor integrated with FeeRouter. It also introduces ContentBlacklist, SafetyReserve, and BuybackBurner to support content takedowns, slashing appeals, and buyback-and-burn operations. The review feedback identifies several critical issues: vested-but-unclaimed Genesis Bond Credits currently escape slashing; the returned slash amount in _reduceStakeAtTier is not updated when the unbonding cap is triggered, causing token distribution mismatches; regional bodies can unauthorizedly remove global blacklist entries; epoch 0 slashes are ignored due to sentinel collision; new payouts bypass the SafetyReserve queue violating FIFO ordering; honest appellants are unfairly penalized when fast-tracked appeals lapse; and addHashRegional reverts with an incorrect error.

Comment thread contracts/src/CapacityBond.sol Resolved
Comment thread contracts/src/CapacityBond.sol Resolved
Comment thread contracts/src/ContentBlacklist.sol Resolved
Comment thread contracts/src/CapacityBond.sol Resolved
Comment thread contracts/src/DecdnGovernor.sol Resolved
Comment thread contracts/src/SafetyReserve.sol Resolved
Comment thread contracts/src/SafetyReserve.sol Resolved
Comment thread contracts/src/ContentBlacklist.sol Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 5 comments.

Comment thread contracts/src/ContentBlacklist.sol Resolved
Comment thread contracts/src/ContentBlacklist.sol Resolved
Comment thread contracts/src/SafetyReserve.sol Resolved
Comment thread contracts/test/CapacityBond.t.sol Resolved
Comment thread contracts/test/CapacityBond.t.sol Resolved
… 0, FIFO, refund-on-lapse, regional-body scope)

Real bugs flagged by gemini-code-assist + Copilot after c02623c:

- Slash basis broadened: `_slashPendingCreditAtTier` now slashes the full
  `originalGrant - claimed` pool (both unvested AND vested-but-unclaimed)
  instead of just the unvested portion. Closes the loophole where an
  operator could shield earned credit by simply delaying
  `claimVestedCredit`. Already-claimed credit lives in `activeStake` and
  is slashed by `_reduceStakeAtTier`, so the two functions partition the
  at-risk pool with no double-counting. New regression
  `test_slashHitsVestedAndUnvestedTogether`.
- `_reduceStakeAtTier` now updates `slashAmount` to the actually-subtracted
  total when the C2 defensive `min(remainder, req.amount)` cap clips —
  previously the caller's distribution math used the un-clipped value and
  would over-transfer / over-burn against future tier-bps schedules > 50%.
- `removeHashRegional` rejects `region == bytes32(0)` and
  `region == GLOBAL_REGION` (security-high: REGIONAL_BODY_ROLE could
  previously delete GLOBAL entries, bypassing governance). Mirrors the
  guard already on `addHashRegional`.
- `_slashedAtEpoch` is now stored as `actualEpoch + 1` so an epoch-0 slash
  (first `EPOCH_LENGTH` after deploy) is not confused with the unslashed
  sentinel. Decoded in `CapacityBond.claimVestedCredit` and
  `DecdnGovernor._slashedInWindow`. Interface NatSpec + tests updated.
- `SafetyReserve.payout` queues when the pending queue is non-empty, not
  only when liquidity is short — preserves insertion-FIFO so a fresh
  payout cannot jump ahead of an older queued claim.
- `cleanupExpiredAppeal` FastTracked branch now REFUNDS the bond instead
  of burning it. The emergency multisig already validated the appeal at
  fast-track; a lapse at the ratification stage is governance inactivity
  and shouldn't penalize honest filers.
- `addHashRegional` reverts with `MissingRegion()` (not `ZeroHash()`) when
  the region argument is invalid — both bots flagged the error misnaming.

Cosmetic / safety guards in the same pass:

- New `AppealFilingWindowClosed(region, hash)` error so off-chain callers
  can distinguish "never blacklisted" from "too late to appeal".
- `swapAccumulatedTokens` rejects `amountIn == 0` for symmetry with
  `BuybackBurner.executeBuyback`.
- Misleading comments in `test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed`
  rewritten (the prior version referenced a "30k claim" and a
  "direct test-write" that the test never actually performs).

Five additional gemini/Copilot findings on c02623c were verified as false
positives (already fixed in earlier passes): FeeRouter dust to operator
(T-1), DecdnGovernor `_slashedInWindow` upper bound (T-4),
ContentBlacklist concurrent appeals (`hasActiveAppeal` guard),
SafetyReserve duplicate slashId (`slashAppealed`), Copilot's
`NonZeroDestinationNeedsShare` flag (wrong error name; only
`NonZeroShareNeedsDestination` exists).

Verified: `forge fmt --check` clean, `FOUNDRY_PROFILE=ci forge build
--deny warnings` clean, `forge test` -> 153/153 pass (was 151).
`.gas-snapshot` regenerated.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
thiras added a commit that referenced this pull request May 28, 2026
* chore(contracts): triage slither + aderyn findings (closes #690)

PR #684's test plan deferred the slither + aderyn static-analysis pass to a
follow-up. Both CI gates were already green on main (slither 31 findings, all
sub-medium; aderyn 0 High, 80 Low), so this commit handles the explicit triage:
fix root causes where cheap, suppress with inline directives where intent is
documented, leave sub-threshold noise alone.

Slither (31 → 21):
- Hoist `ICapacityBondEjector` (was inline in ContentBlacklist) and
  `ICapacityBondReporter` (was inline in FeeRouter) into dedicated files
  under `src/interfaces/`. Declare them on `CapacityBond`, mark `ejectNode`,
  `recordSettlement`, `epochLength` `override`. Clears 2x `missing-inheritance`.
- Suppress `missing-zero-check` at the 5 sites where zero address is
  documented-intentional: `BuybackBurner.setPool`/`setVault` ("not wired"
  state — `executeBuyback` reverts with `PoolNotWired`), `CapacityBond.
  setTreasury` (forfeit burns as fallback), and the two `FeeRouter`
  constructor params for `safetyReserve_` / `buybackBurner_` (allowed iff
  matching share is zero; cross-validated in `_setShares`).
- Suppress `unimplemented-functions` on the `abstract BuybackBurner` — the
  `_performSwap` virtual-without-body is the documented seam for the
  Balancer V3 deployment-PR subclass.

Aderyn (L-3: 6 → 3, L-5: 1 → 0):
- Real zero-checks added to `SafetyReserve.setBalancerPool`,
  `SafetyReserve.setChallengerIncentivePool`, and
  `CapacityBond.setSafetyReserve` — none had a documented intent for zero,
  and writing zero would brick the slash-routing flow.
- Remove the unused `error NoPendingCredit()` from CapacityBond.

Remaining sub-threshold findings (~21 slither timestamp lows on time-gated
state machines + aderyn centralization-risk / unchecked-return / large-numeric
lows) are accepted by design — suppressing each would add ~30 directives of
noise without clearing any gate.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

* chore(contracts): drop redundant inline comment on FeeRouter constructor

Bot reviewers flagged the `// See NatSpec on lines 161-164` reference as
both wrong (the @PARAM NatSpec is above the constructor signature) and
brittle (hard-coded line numbers drift). The @PARAM NatSpec already
documents the zero-allowed semantics — the inline comment was redundant.
Keep the two `slither-disable-next-line missing-zero-check` directives.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

* chore(contracts): apply review feedback — override consistency + interface NatSpec

- Add `override` to the four pre-existing `ICapacityBond` implementations
  on `CapacityBond` (`clearSlashedAtEpoch`, `firstBondedAt`, `slashedAtEpoch`,
  `slashRecords`) so the file no longer mixes styles with the three new
  `override` markers added for the hoisted `ICapacityBondEjector` /
  `ICapacityBondReporter` interfaces.
- Document on `ICapacityBondReporter.epochLength` why the interface is
  declared `view` rather than `pure` despite the production implementor
  being `pure` — test mocks need to return a constructor-stored value per
  instance, which `pure` (which can't read state or immutables) would block.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants