Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20840170 | 114 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Time
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.26; library Time { ///@notice Gets the current timestamp function blockTs() internal view returns (uint32 ts) { assembly { ts := timestamp() } } ///@notice Gets the the day count from a timestamp function dayCountByT(uint32 t) internal pure returns (uint32 dayCount) { assembly { let adjustedTime := sub(t, 50400) dayCount := div(adjustedTime, 86400) } } function daysSince(uint32 t) public view returns (uint32 daysPassed) { assembly { // Get the current block timestamp let currentTime := timestamp() daysPassed := div(sub(currentTime, t), 86400) } } }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@uniswap/v3-core/=lib/v3-core/", "@uniswap/v3-periphery/=lib/v3-periphery/", "@uniswap/v2-periphery/=lib/v2-periphery/", "@uniswap/v2-core/=lib/v2-core/", "@core/=src/core/", "@libs/=src/libs/", "@utils/=src/utils/", "@const/=src/const/", "@interfaces/=src/interfaces/", "@script/=script/", "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v3-core/=lib/v3-core/contracts/", "v3-periphery/=lib/v3-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "shanghai", "viaIR": false, "libraries": { "src/utils/Time.sol": { "Time": "0x10EDBE32a8767dD345dB963a124aEE11909A7e2f" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint32","name":"t","type":"uint32"}],"name":"daysSince","outputs":[{"internalType":"uint32","name":"daysPassed","type":"uint32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c5610033600b8282823980515f1a607314602757634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106032575f3560e01c8063bae4bca8146036575b5f80fd5b604e60413660046067565b6201518042919091030490565b60405163ffffffff909116815260200160405180910390f35b5f602082840312156076575f80fd5b813563ffffffff811681146088575f80fd5b939250505056fea26469706673582212203f00d959732ce15e5ea3b88a240e2d7e68537e0af729f30cdbff0f466963882064736f6c634300081a0033
Deployed Bytecode
0x7310edbe32a8767dd345db963a124aee11909a7e2f30146080604052600436106032575f3560e01c8063bae4bca8146036575b5f80fd5b604e60413660046067565b6201518042919091030490565b60405163ffffffff909116815260200160405180910390f35b5f602082840312156076575f80fd5b813563ffffffff811681146088575f80fd5b939250505056fea26469706673582212203f00d959732ce15e5ea3b88a240e2d7e68537e0af729f30cdbff0f466963882064736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.