balancer / balancer-deployments

GNU General Public License v3.0
41 stars 35 forks source link

Verify splitcode pseudo-contracts are not executable #92

Closed EndymionJkb closed 1 year ago

EndymionJkb commented 1 year ago

Description

See this PR in the monorepo, which fixes an obscure issue with the BaseSplitCodeFactory where, if you were very unlucky indeed, the second half of the contract might start with valid opcodes including a selfdestruct, which would brick the factory if executed.

This adds fork tests to all the pool factories, checking that this did not already happen, and should be carried forward into any future pool deployments (with corrected factory code, if it's a new release and not a patch).

Type of change

Checklist:

Issue Resolution

jamiegreen7 commented 1 year ago

LGTM, thanks!