Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 72083972 | 1041 days ago | 0 ETH | ||||
| 72083972 | 1041 days ago | 0 ETH | ||||
| 72083972 | 1041 days ago | 0 ETH | ||||
| 72083972 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72083041 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082869 | 1041 days ago | 0 ETH | ||||
| 72082468 | 1041 days ago | 0 ETH | ||||
| 72082468 | 1041 days ago | 0 ETH | ||||
| 72082468 | 1041 days ago | 0 ETH | ||||
| 72082468 | 1041 days ago | 0 ETH | ||||
| 72080014 | 1041 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Chainlink
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import '@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol';
/// @title Chainlink
/// @notice Consumes price data
contract Chainlink {
// -- Constants -- //
uint256 public constant UNIT = 10 ** 18;
uint256 public constant GRACE_PERIOD_TIME = 3600;
uint256 public constant RATE_STALE_PERIOD = 86400;
// -- Variables -- //
AggregatorV3Interface internal sequencerUptimeFeed;
// -- Errors -- //
error SequencerDown();
error GracePeriodNotOver();
error StaleRate();
/**
* For a list of available sequencer proxy addresses, see:
* https://docs.chain.link/docs/l2-sequencer-flag/#available-networks
*/
// -- Constructor -- //
constructor() {
// Arbitrum L2 sequencer feed
sequencerUptimeFeed = AggregatorV3Interface(0xFdB631F5EE196F0ed6FAa767959853A9F217697D);
}
// Returns the latest price
function getPrice(address feed) public view returns (uint256) {
if (feed == address(0)) return 0;
// prettier-ignore
(
/*uint80 roundID*/,
int256 answer,
uint256 startedAt,
/*uint256 updatedAt*/,
/*uint80 answeredInRound*/
) = sequencerUptimeFeed.latestRoundData();
// Answer == 0: Sequencer is up
// Answer == 1: Sequencer is down
bool isSequencerUp = answer == 0;
if (!isSequencerUp) {
revert SequencerDown();
}
// Make sure the grace period has passed after the sequencer is back up.
uint256 timeSinceUp = block.timestamp - startedAt;
if (timeSinceUp <= GRACE_PERIOD_TIME) {
revert GracePeriodNotOver();
}
AggregatorV3Interface priceFeed = AggregatorV3Interface(feed);
// prettier-ignore
(
/*uint80 roundID*/,
int price,
/*uint startedAt*/,
uint256 updatedAt,
/*uint80 answeredInRound*/
) = priceFeed.latestRoundData();
if (updatedAt < block.timestamp - RATE_STALE_PERIOD) {
revert StaleRate();
}
uint8 decimals = priceFeed.decimals();
// Return 18 decimals standard
return (uint256(price) * UNIT) / 10 ** decimals;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
function getRoundData(uint80 _roundId)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
function latestRoundData()
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 100
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GracePeriodNotOver","type":"error"},{"inputs":[],"name":"SequencerDown","type":"error"},{"inputs":[],"name":"StaleRate","type":"error"},{"inputs":[],"name":"GRACE_PERIOD_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_STALE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"feed","type":"address"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
6080806040523461003c57600080546001600160a01b03191673fdb631f5ee196f0ed6faa767959853a9f217697d1790556103b790816100428239f35b600080fdfe6080604052600436101561001257600080fd5b6000803560e01c806341976e09146100a95780639d8e217714610086578063a3abfc92146100685763ed2f86031461004957600080fd5b346100655780600319360112610065576020604051610e108152f35b80fd5b50346100655780600319360112610065576020604051620151808152f35b50346100655780600319360112610065576020604051670de0b6b3a76400008152f35b503461006557602036600319011261006557600435906001600160a01b03821682036100655760206100da8361016b565b604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761010457604052565b634e487b7160e01b600052604160045260246000fd5b519069ffffffffffffffffffff8216820361013157565b600080fd5b908160a09103126101315761014a8161011a565b9160208201519160408101519161016860806060840151930161011a565b90565b6001600160a01b0390811690811561037a57600090815416906040805193849384633fabe5a360e21b9182825260a09687916004998a915afa908115610370578590869261034d575b5061033e5742034281116102d657610e10101561032e57825190815284818781855afa90811561032157849585926102e9575b50506201517f194201904282116102d657106102c6576020859183519283809263313ce56760e01b82525afa9182156102bd5750829161027e575b50670de0b6b3a76400009283810293818504149015171561026b5760ff16604d811161026b57600a0a9283156102585750500490565b634e487b7160e01b825260129052602490fd5b634e487b7160e01b825260118452602482fd5b90506020813d82116102b5575b81610298602093836100e2565b810103126102b1575160ff811681036102b15738610222565b5080fd5b3d915061028b565b513d84823e3d90fd5b815163ec30f4ab60e01b81528590fd5b634e487b7160e01b855260118752602485fd5b61030d93965080919250903d1061031a575b61030581836100e2565b810190610136565b50959250509338806101e7565b503d6102fb565b50505051903d90823e3d90fd5b825163d15f73b560e01b81528690fd5b835162032b3d60e81b81528790fd5b90506103669150863d881161031a5761030581836100e2565b50509150386101b4565b84513d87823e3d90fd5b505060009056fea2646970667358221220e10a47dab6cc52269e0a8167236dcb3ad105b9e909af2d2864db3b404b2c302864736f6c63430008110033
Deployed Bytecode
0x6080604052600436101561001257600080fd5b6000803560e01c806341976e09146100a95780639d8e217714610086578063a3abfc92146100685763ed2f86031461004957600080fd5b346100655780600319360112610065576020604051610e108152f35b80fd5b50346100655780600319360112610065576020604051620151808152f35b50346100655780600319360112610065576020604051670de0b6b3a76400008152f35b503461006557602036600319011261006557600435906001600160a01b03821682036100655760206100da8361016b565b604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761010457604052565b634e487b7160e01b600052604160045260246000fd5b519069ffffffffffffffffffff8216820361013157565b600080fd5b908160a09103126101315761014a8161011a565b9160208201519160408101519161016860806060840151930161011a565b90565b6001600160a01b0390811690811561037a57600090815416906040805193849384633fabe5a360e21b9182825260a09687916004998a915afa908115610370578590869261034d575b5061033e5742034281116102d657610e10101561032e57825190815284818781855afa90811561032157849585926102e9575b50506201517f194201904282116102d657106102c6576020859183519283809263313ce56760e01b82525afa9182156102bd5750829161027e575b50670de0b6b3a76400009283810293818504149015171561026b5760ff16604d811161026b57600a0a9283156102585750500490565b634e487b7160e01b825260129052602490fd5b634e487b7160e01b825260118452602482fd5b90506020813d82116102b5575b81610298602093836100e2565b810103126102b1575160ff811681036102b15738610222565b5080fd5b3d915061028b565b513d84823e3d90fd5b815163ec30f4ab60e01b81528590fd5b634e487b7160e01b855260118752602485fd5b61030d93965080919250903d1061031a575b61030581836100e2565b810190610136565b50959250509338806101e7565b503d6102fb565b50505051903d90823e3d90fd5b825163d15f73b560e01b81528690fd5b835162032b3d60e81b81528790fd5b90506103669150863d881161031a5761030581836100e2565b50509150386101b4565b84513d87823e3d90fd5b505060009056fea2646970667358221220e10a47dab6cc52269e0a8167236dcb3ad105b9e909af2d2864db3b404b2c302864736f6c63430008110033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.