Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check non-view non-multicall functions are protected #461

Merged
merged 7 commits into from
Oct 31, 2024
Merged

Conversation

adhusson
Copy link
Contributor

@adhusson adhusson commented Oct 29, 2024

Bundler methods used during a bundle execution have the protected modifier. This modifier ensures that:

  • An initiator has been set, and
  • the caller is the bundle initiator or the Morpho contract.

The Protected.spec file checks that all bundler functions, except noted exceptions, respect the requirements of the protected modifier when an initiator has been set.

@colin-morpho
Copy link

colin-morpho commented Oct 29, 2024

It could be nice to have more comments informing what are you intending to verify, how and maybe even why, it's much nicer to start a review with a birds-eye view of what's going on. May just a simple description in the PR is nice.

@adhusson
Copy link
Contributor Author

Good point, I've added a README.md modeled after those in the metamorpho and pre-liquidation repos and edited this PR's description.

Copy link
Contributor

@QGarchery QGarchery left a comment

Choose a reason for hiding this comment

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

Awesome, thanks ! 🔥

certora/specs/Protected.spec Outdated Show resolved Hide resolved
certora/specs/Protected.spec Outdated Show resolved Hide resolved
certora/confs/AaveV3MigrationBundlerV2.conf Show resolved Hide resolved
certora/confs/ChainAgnosticBundlerV2.conf Outdated Show resolved Hide resolved
certora/README.md Show resolved Hide resolved
certora/README.md Outdated Show resolved Hide resolved
certora/specs/Protected.spec Outdated Show resolved Hide resolved
certora/specs/Protected.spec Outdated Show resolved Hide resolved
certora/README.md Outdated Show resolved Hide resolved
@adhusson adhusson requested a review from colin-morpho October 31, 2024 14:32
Copy link
Contributor

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

LGTM

certora/specs/Protected.spec Show resolved Hide resolved
certora/confs/EthereumBundlerV2.conf Show resolved Hide resolved
@MathisGD MathisGD merged commit 17025b3 into main Oct 31, 2024
17 checks passed
@MathisGD MathisGD deleted the feat/certora branch October 31, 2024 17:30
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.

4 participants