Skip to content

specs(lockedGold): add pending timestamp precondition and reorder require in withdraw rule#11573

Open
Bashmunta wants to merge 1 commit intocelo-org:masterfrom
Bashmunta:bashmak
Open

specs(lockedGold): add pending timestamp precondition and reorder require in withdraw rule#11573
Bashmunta wants to merge 1 commit intocelo-org:masterfrom
Bashmunta:bashmak

Conversation

@Bashmunta
Copy link
Copy Markdown

The withdraw rule could spuriously fail because it invoked withdraw without constraining time to or beyond the pending withdrawal’s availability, causing revert paths that invalidate the post-call balance equality assertion. This change declares getPendingWithdrawal in the methods block and updates the rule to read both the amount and its timestamp, then requires e.block.timestamp >= ts before invoking withdraw. It also moves the e.msg.sender != currentContract precondition before the call, so the environment is properly constrained. These adjustments mirror the contract’s own require for availability, focus the rule on the successful path the comment intends to model, and remove a source of non-deterministic failures without altering harnesses or contract code.

@Bashmunta Bashmunta requested a review from a team as a code owner November 16, 2025 11:29
@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale and will be closed in 30 days without activity

@github-actions github-actions bot added the stale Is left alone for very long time label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Is left alone for very long time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant