Repository navigation
Fix every finding of the unreachable Solidity code scanner - #1892
Merged
Merged
Conversation
Removes unused imports and interface members nothing calls (unused IQuestionLedger, ISecurityPoolServiceRoot and deposit-context getters, the IWeth9 ERC-20 surface, and IERC1155's never-emitted URI event). EscalationGameDepositDelegate now declares IEscalationGameAuthorization so the compiler checks it, and the fork coordinator reuses SecurityPool's repair auction deployer interface instead of a duplicate. The Uniswap factory and pool ABIs the chaos bot calls move from Solidity interfaces to hand-written TypeScript beside the bot's other Uniswap ABIs. augurScan drops its special case for the removed URI event. Regenerates the bot ABIs and the contract reference fingerprints.
KillariDev
force-pushed
the
t3/fix-solidity-unreachable-findings
branch
from
December 3, 2026 11:25
55777c6 to
c4feea1
Compare
KillariDev
changed the base branch from
t3/solidity-unreachable-code-scanner
to
main
December 3, 2026 11:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the findings of the scanner added in #1890. The two PRs are independent and can merge in either order; this one contains only the contract fixes and their consumer updates.
What
Fixes all 22 findings of
bun run check:solidity-unreachablefrom #1890. Run against this branch, the scanner reportsNo unreachable code found in 157 Solidity file(s).DepositandSecurityPoolUtils;EscalationGameFactoryinIQuestionLedgeronce its last use wentIEscalationGameAuthorizationnever inherited or usedEscalationGameDepositDelegate, which implements both functions, now declaresis IEscalationGameAuthorization, so the compiler checks the signaturesIQuestionLedger.isEscalationResolved,initialEscalationGameDepositAttoRep,escalationGameFactory;ISecurityPoolServiceRoot.forkController;IEscalationGameDepositContext.getQuestionResolutionnever called through the interfaceIWeth9ERC-20 functions and events never usedIWeth9now declares onlydepositandwithdraw; token transfers already go throughIERC20IERC1155.URInever emittedunclassifiedEventsset existed only for it and is removed with its test caseISecurityPoolRepairAuctionDeployer.createnever called, becauseSecurityPoolForkCoordinatordeclared an identical duplicate interfaceISecurityPoolRepairAuctionDeployerfromSecurityPool.sol, and the duplicate is goneIGenesisUniswapV3Factory/IGenesisUniswapV3PoolStateunused in Soliditybots/chaos/src/contracts/uniswap-abi.ts, beside the bot's other Uniswap ABIs, and the generated bot ABI file and its tests drop themRegenerated outputs
No behaviour changes, and deployed bytecode is identical to
main: the deployment manifests and pinned runtime code hashes are unchanged. Regenerated:bots/shared/src/contracts/abi.generated.ts, which dropsURIand the moved Uniswap ABIsValidation
bun run test(TypeScript and the full root suite): 6724 pass, 0 failbun run testinaugurScan,bots/sharedandbots/chaos: all passbun run test:browser:smoke: 46 passbun run check:generated-clean,bun run knip,bun run check:changed,bun run format:check,bun run check:solidity-format,bun run docs:check-contract-reference,bun run check:mainnet-deployment:current,bots/sharedcheck:generated, andgit diff --check: all pass