withdrawTo(address payable _receiver, uint _value) public isSufficientMoney(msg.sender, _value) isPaused{
require(lockedUntil < block.timestamp, "You can't transfer during the next minute, wait please");
_receiver.transfer(_value);
}
Block.timestamp is supposed to be when the block was mined. But it isn't completely precise, the miner has some leeway to what they set it to. So you shouldnt rely on block.timestamp to make important decisions.
Обсуждают сегодня