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

Gad/setup #18

Draft
wants to merge 29 commits into
base: staging-2.5-fork
Choose a base branch
from
Draft

Gad/setup #18

wants to merge 29 commits into from

Conversation

Roy-Certora
Copy link

No description provided.

function _.upgradeToAndCall(address,bytes) external => NONDET;
}

/// Is persistent because it mirrors the PoolManager storage.
Copy link
Author

Choose a reason for hiding this comment

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

When a copy-paste gives you away :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

its inspiration


hook Sstore bids[KEY uint256 bid_id].amount uint256 new_amount (uint256 old_amount) {
bids_amount[bid_id] = new_amount;
sum_of_bids = sum_of_bids + 1;
Copy link
Author

Choose a reason for hiding this comment

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

Is it possible to reset the bid? In that case when new_amount = 0 the sum_of_bids should reduce by 1.

}

hook Sstore bids[KEY uint256 bid_id].isActive bool new_acitive (bool old_active) {
if (new_acitive) {
Copy link
Author

Choose a reason for hiding this comment

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

why not new_active && !old_active ?


function _.upgradeToAndCall(address,bytes) external => NONDET;

// Node manager summaries:
Copy link
Author

Choose a reason for hiding this comment

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

Which rules are violated if you remove summaries for state-changing functions?

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.

2 participants