mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-12 08:26:46 +00:00
vault: reduce size of timestamp further
This commit is contained in:
parent
0237b640e7
commit
3064b1468c
@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity 0.8.28;
|
||||
|
||||
type Timestamp is uint64;
|
||||
type Duration is uint64;
|
||||
type Timestamp is uint40;
|
||||
type Duration is uint40;
|
||||
|
||||
using {_timestampEquals as ==} for Timestamp global;
|
||||
using {_timestampNotEqual as !=} for Timestamp global;
|
||||
@ -27,7 +27,7 @@ function _timestampAtMost(Timestamp a, Timestamp b) pure returns (bool) {
|
||||
|
||||
library Timestamps {
|
||||
function currentTime() internal view returns (Timestamp) {
|
||||
return Timestamp.wrap(uint64(block.timestamp));
|
||||
return Timestamp.wrap(uint40(block.timestamp));
|
||||
}
|
||||
|
||||
function until(
|
||||
|
Loading…
x
Reference in New Issue
Block a user