Jelajahi Sumber

fix simple vote end before start

Shelly Grossman 4 tahun lalu
induk
melakukan
ac729e0ecf
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      certora/specs/GovernorBase.spec

+ 2 - 2
certora/specs/GovernorBase.spec

@@ -21,8 +21,8 @@ methods {
  */
 //invariant voteStartBeforeVoteEnd1(uint256 pId) proposalSnapshot(pId) < proposalDeadline(pId)
 invariant voteStartBeforeVoteEnd(uint256 pId)
-        (proposalSnapshot(pId) == 0 <=> proposalDeadline(pId) == 0) &&
-        proposalSnapshot(pId) < proposalDeadline(pId)
+        (proposalSnapshot(pId) > 0 =>  proposalSnapshot(pId) < proposalDeadline(pId))
+             && (proposalSnapshot(pId) == 0 => proposalDeadline(pId) == 0)
 
 /**
  * A proposal cannot be both executed and canceled.