functions
    

    
    
    

    function createSnapshot()
        public
        returns (uint256)
    {
        uint256 base = dayBase(uint128(block.timestamp));

        if (base > _currentSnapshotId) {
            
            _currentSnapshotId = base;
        } else {
            
            _currentSnapshotId += 1;
        }

        
        emit LogSnapshotCreated(_currentSnapshotId);
        return _currentSnapshotId;
    }