Skip to content

[Certora] Prove that take has no new reverts due to continuous fees - #998

Open
jhoenicke wants to merge 7 commits into
mainfrom
certora-norevertsintakeduetocontinuousfee
Open

[Certora] Prove that take has no new reverts due to continuous fees#998
jhoenicke wants to merge 7 commits into
mainfrom
certora-norevertsintakeduetocontinuousfee

Conversation

@jhoenicke

Copy link
Copy Markdown
Collaborator

Compare a run of take with zero fees with a run of take with arbitrary fee. Show that if the first does not revert, the second doesn't as well.

Requires a deterministic setting (all external gates and internal abstracted functions are modelled by a deterministic ghost). This is why it is using its own separate spec file.

Compare a run of take with zero fees with a run of take with
arbitrary fee.  Show that if the first does not revert, the second
doesn't as well.

Requires a deterministic setting (all external gates are modeled
by a deterministic ghost).
@jhoenicke
jhoenicke requested a review from QGarchery June 17, 2026 09:08

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 158ad4329f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread certora/specs/ContinuousFeeReverts.spec Outdated
Comment thread certora/specs/ContinuousFeeReverts.spec Outdated
Comment thread certora/specs/ContinuousFeeReverts.spec
Also set the continuousfee in the second scenario to a new non-zero value.

We don't have to require it was zero before and prove an even stronger property
that changing the value will not cause new reverts.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 43262ab25d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread certora/specs/ContinuousFeeReverts.spec
Comment thread certora/specs/ContinuousFeeReverts.spec
Comment on lines +43 to +44
function SafeTransferLib.safeTransferFrom(address, address, address, uint256) internal => NONDET;
function SafeTransferLib.safeTransfer(address, address, uint256) internal => NONDET;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not important, but to be 100% correct they should do deterministicSuccess as well no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants