Skip to content

Commit ea646cd

Browse files
committed
Clarify EIP-6372 clock bounds
1 parent 3136414 commit ea646cd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

content/contracts-cairo/3.x/api/governance.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ Whether a proposal needs to be queued before execution. This indicates if the pr
185185
Delay between when a proposal is created and when the vote starts. The unit this duration is expressed in depends on the clock (see [ERC-6372](https://eips.ethereum.org/EIPS/eip-6372)) this contract uses.
186186

187187
This can be increased to leave time for users to buy voting power, or delegate it, before the voting of a proposal starts.
188+
189+
NOTE: While this function returns a u64 value, timepoints must fit into u48 according to
190+
the EIP-6372 specification. Consequently this value must fit in a u48 (when added to the
191+
current clock).
188192
</APIItem>
189193

190194
<APIItem

content/contracts-cairo/3.x/api/utilities.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ Returns the current timepoint determined by the contract's operational mode, int
275275
Requirements:
276276

277277
- This function MUST always be non-decreasing.
278+
279+
NOTE: While this function returns a u64 value, timepoints must fit into u48 according to
280+
the EIP-6372 specification.
278281
</APIItem>
279282

280283
<APIItem

0 commit comments

Comments
 (0)