Contract 0x72301227b359df68637e962b3ed0b46575167277 9

 

Contract Overview

Balance:
0 ETH

EtherValue:
$0.00

Token:
Txn Hash Method
Block
From
To
Value
0x0f16e82d85613ffd2c8c811ead6caac0122f560737d50ebdab83e0b5f8cacceaSet Value133531612024-04-19 3:01:093 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000028027770.084106446
0xc78192d229376f836e42f188468fac63fdc52910b6235ad54cd352eef5a40514Set Value133530412024-04-19 2:57:097 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000027553780.082296425
0x91fc62c67b9622a97f705b6b4debdabda1f49eeb1c3c12170814dfb4afbfd3ebSet Value133529202024-04-19 2:53:0711 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.00000267990.080478871
0x5ef80793269d96b7dc3c96e3dd9271a39b3e11c49e922e10ba40e9104244d86fSet Value133526202024-04-19 2:43:0721 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000030110680.090561567
0x44c627eddd222c9d0a691c20378924917b69d178b5d6f56ed52c2b6e90d7f798Set Value133520202024-04-19 2:23:0741 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000023443090.070104431
0x7c747ab9e8280761543df61e484d39a45378e0fc44e7589725d4758f4a0fdfb5Set Value133518992024-04-19 2:19:0545 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000021217380.063672769
0x4e1160a19f22f4fd77d41664eb1b90f69c7efcc008dfcf95f33353e4b4a2963cSet Value133513592024-04-19 2:01:051 hr 3 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000018949410.056813743
0x52ffc894f9cc80bf541cfff0eea1b279ef2f02ef02241fc6be610026e766db43Set Value133511202024-04-19 1:53:071 hr 11 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000019181320.056925178
0x1405a31eaa84bf322b4bce14ffd2781743a14c673ea97d18d08b322aba90d110Set Value133508912024-04-19 1:45:291 hr 18 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000016865490.049888454
0x81ee614664dfc39fb0a1cf19c3c0bd0f1392a91e89ef3fb5e0667012ee206586Set Value133507712024-04-19 1:41:291 hr 22 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000015618030.046734515
0x65343d1ccb7a517c200b54834d64d4527cc0efde6ee27bb3262392401d3b5480Set Value133506442024-04-19 1:37:151 hr 27 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.000001407220.042399355
0x334fa2fedc5342cfede01a85cf58215f5f3a349849cc384cc610e6466a18b3e0Set Value133505802024-04-19 1:35:071 hr 29 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000013373630.040363469
0x0816bfe7547e1476e18f7c3212348e70c6cc44d2d5384d1bd5852a5a49db2582Set Value133499802024-04-19 1:15:071 hr 49 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000011145160.033445049
0x5f7dea985da93119cb4ce8b7ea1309cd2c9f92da63771baaa1458c7327a57181Set Value133497992024-04-19 1:09:051 hr 55 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000010290780.030864135
0x3613564a705afa6116a892557b59a5f061a78b350de7db76aadb2d3fe86d9579Set Value133496182024-04-19 1:03:032 hrs 1 min ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000010158730.030618828
0x5d39940acc3c44dfa0813d5e387d3e0071955802a1c37cda7c5b8417f9e1447bSet Value133494982024-04-19 0:59:032 hrs 5 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000009620340.028926756
0xa2182d14705750226751c22e4fbd99046efebc6178b78d29b4256cac5301e4f9Set Value133403192024-04-18 19:53:057 hrs 11 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000026088880.079437058
0xabdd565fcd564185b36a4306de917af537db3d071d4d0f63a174a366c9f12ff5Set Value133382792024-04-18 18:45:058 hrs 19 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000025477310.077345303
0x79b22ca79b7e92c4af8513a03f5bd64169cb56ea48161aec81ae16835aab07f9Set Value133376192024-04-18 18:23:058 hrs 41 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000028228750.085720286
0x706a407945e570911aa1e8cebcf5069f66799d414f5423d6dc2507bb91f5b191Set Value133373792024-04-18 18:15:058 hrs 49 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000031898710.097078854
0x43b4dcaf26f0395f6361f5dc2a10c477ac6f71bbdf9e223313828557ab2ec687Set Value133367792024-04-18 17:55:059 hrs 9 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000023802120.072139446
0xc2fe39f64317ab922c69cc394f6ed33cfb3527d3d4660b2d9a710cc3120aafc8Set Value133353392024-04-18 17:07:059 hrs 57 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000024134910.073014189
0x54033e88d3546854a44e479c60c86f1822f1c67904959f9781677a3e556e1c01Set Value133340792024-04-18 16:25:0510 hrs 39 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000037920560.115088779
0x64ceb4a0fc6e8d82f71808844d290d017b582f8cfbd71406a4b85bb1a03b6de6Set Value133324602024-04-18 15:31:0711 hrs 33 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000040444020.122538352
0x6f9c0e9ed832a140100df457aa5497df88094aa001d35b16ef10ec076701f0fbSet Value133302412024-04-18 14:17:0912 hrs 47 mins ago0x5979009f2ecf5c65933f0a2c9d63c2722fb943e1 IN  0x72301227b359df68637e962b3ed0b465751672770 ETH0.0000026209610.078893525
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xB8BF9ba432282F25F56e143641145349ab7c5Bf6
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DIAOracleV2

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at basescan.org on 2023-08-01
*/

// compiled using solidity 0.7.4

pragma solidity 0.7.4;

contract DIAOracleV2 {
    mapping (string => uint256) public values;
    address oracleUpdater;
    
    event OracleUpdate(string key, uint128 value, uint128 timestamp);
    event UpdaterAddressChange(address newUpdater);
    
    constructor() {
        oracleUpdater = msg.sender;
    }
    
    function setValue(string memory key, uint128 value, uint128 timestamp) public {
        require(msg.sender == oracleUpdater);
        uint256 cValue = (((uint256)(value)) << 128) + timestamp;
        values[key] = cValue;
        emit OracleUpdate(key, value, timestamp);
    }
    
    function getValue(string memory key) external view returns (uint128, uint128) {
        uint256 cValue = values[key];
        uint128 timestamp = (uint128)(cValue % 2**128);
        uint128 value = (uint128)(cValue >> 128);
        return (value, timestamp);
    }
    
    function updateOracleUpdaterAddress(address newOracleUpdaterAddress) public {
        require(msg.sender == oracleUpdater);
        oracleUpdater = newOracleUpdaterAddress;
        emit UpdaterAddressChange(newOracleUpdaterAddress);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"uint128","name":"value","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"OracleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newUpdater","type":"address"}],"name":"UpdaterAddressChange","type":"event"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"getValue","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"setValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOracleUpdaterAddress","type":"address"}],"name":"updateOracleUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"values","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

Deployed ByteCode Sourcemap

62:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90:41:0;;-1:-1:-1;90:41:0;;-1:-1:-1;;;;;90:41:0:i;:::-;;;;;;;;;;;;;;;;948:242;;;;;;;;;;;;;;;;-1:-1:-1;948:242:0;-1:-1:-1;;;;;948:242:0;;:::i;:::-;;373:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;;;;;;;373:282:0;;;;;-1:-1:-1;373:282:0;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;373:282:0:i;667:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;667:269:0;;-1:-1:-1;667:269:0;;-1:-1:-1;;;;;667:269:0:i;:::-;;;;;-1:-1:-1;;;;;667:269:0;;;;;;-1:-1:-1;;;;;667:269:0;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;948:242::-;1057:13;;-1:-1:-1;;;;;1057:13:0;1043:10;:27;1035:36;;;;;;1082:13;:39;;-1:-1:-1;;;;;1082:39:0;;-1:-1:-1;;;;;;1082:39:0;;;;;;;;1137:45;;;;;;;;;;;;;;;;948:242;:::o;373:282::-;484:13;;-1:-1:-1;;;;;484:13:0;470:10;:27;462:36;;;;;;509:14;556:9;-1:-1:-1;;;;;526:39:0;549:3;538:5;-1:-1:-1;;;;;528:16:0;527:25;;526:39;509:56;;590:6;576;583:3;576:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;-1:-1:-1;576:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;612:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;612:35:0;;;;;;;;;;;;;;;;;;;;576:11;;612:35;;;;;;;;;;-1:-1:-1;612:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;373:282;;;;:::o;667:269::-;727:7;736;756:14;773:6;780:3;773:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;-1:-1:-1;773:11:0;;;;;;;;;;;888:3;878:13;;;;-1:-1:-1;;;;;825:15:0;;;;-1:-1:-1;878:13:0;-1:-1:-1;;;;;667:269:0:o

Swarm Source

ipfs://1dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a4
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.