Contract 0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c78

Contract Overview

Balance:
0 FTM
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x450a220f51081373e5c191b836a1db7eaff00f64b40871f8709f1fa86915235aSet Value119404282022-11-09 19:33:2387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145863503
0x0cd4b9b63d9f59f4174a72027a3672e7d79748a0844d302d5f08bd38981245b4Set Value119402682022-11-09 19:27:1387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145812831
0x68997ba5fad16f7687dc447e6db6c9be96fcb09c0c773b25d3c4d3fb83a8f234Set Value119401142022-11-09 19:21:1387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145824353
0x183d2482d1fb27573caae3f8826e0f95e215a76394fa64d5dedb293171bfc2d0Set Value119397682022-11-09 19:07:1387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145815533
0x9184a91e03fa492c30d3c95369fc1629530c9fc251f79c5e4ba150d7ec43333dSet Value119397172022-11-09 19:05:2387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.00014583849
0xc60043ae9789e79a66d425bfdf91cb4e279f268701ba2f4346116ee0d16ccc2eSet Value119395512022-11-09 18:59:1387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145816102
0x8c583afb34694df9b606a42ce65f1e1281e8f8e9e67748c8e20ea7bc93ce9522Set Value119393952022-11-09 18:53:1387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145813257
0xf71cb1e631e79c92784907204aa7caa5f47b3082a08ed5c37c5f67f7af027247Set Value119393472022-11-09 18:51:2287 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.00014584603
0x111ff08b9786a96063a68c98a54725f16f6f985b726c233fb0459b7c2b4c47dfSet Value119393442022-11-09 18:51:1287 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145812546
0x8b3e77119f4c3292d843b1867f3cd75a59eb379617901c8de44935380c1c50f9Set Value119392132022-11-09 18:47:2387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.00014583849
0xf6291c68d5d017b209d0c356cab5307083dcd72b76ae72c0937701a05059ef93Set Value119391612022-11-09 18:45:2387 days 21 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145838063
0x17293ee115a8558f040578d751124b692809dddf70a5d1c2a65b77e91ae1abb6Set Value119390532022-11-09 18:41:2287 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.00014583849
0x60376128af6475cae625521921a9e795269c491c8cbdfc9b325053e1e572a5c3Set Value119389812022-11-09 18:39:1387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.00014583175
0x4f30aaecb19a9193c1e063935a7427fd1799e8ed4b79accdd187e93e331f5cdcSet Value119386532022-11-09 18:27:1387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145818947
0x7f766abb67c4ee6fa1814fbea030f029139272752f3fb130fbbba022f8009603Set Value119384882022-11-09 18:21:2387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145842473
0x3b7586108e6379f4c81e1f07c90b83562848047262666ec3dc74344f192524a4Set Value119384852022-11-09 18:21:1387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145813257
0xb1c6a35dc4e6004a176e0f14971635ba4f08af8b4b58cfe25b3da353a49df62cSet Value119384342022-11-09 18:19:2487 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145841477
0xc77f436499664b31d2962a8780c752789fa7ae801b161ac5bb7dcad296587fedSet Value119384312022-11-09 18:19:1387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145815107
0x7cecaa46750fb24f29514b8cbf1499b524460821168b2208b7627c9b1e32f67fSet Value119383802022-11-09 18:17:2387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145838632
0xe07fb397e88130b3ae630895bb831e19a5e14165be74920172bee5c0219d9717Set Value119382102022-11-09 18:11:2487 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145846173
0x8800cc0404645cb50a960d22bd71dff2f75d0cf7ae1a18697771499bd54e203bSet Value119382062022-11-09 18:11:1487 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145814253
0x2edeb83298a4dcb091a09a0b8580de623c5862c6b9633932ffa224184b23a34eSet Value119380342022-11-09 18:05:2387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145836213
0xdc90c15ba674112a1d005413413c26345dc8da576445d725ddf9c683ccc4f0f6Set Value119379852022-11-09 18:03:1387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145814253
0x97c72e36fa596aa3635482ee30218d0d5b2a1ff032f2a55a656bc576c2d1deddSet Value119376432022-11-09 17:51:2387 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145836071
0xad9f13cb590a0d2c78393552486955a72342b06422e85b5a6322797837e25c9cSet Value119375922022-11-09 17:49:1487 days 22 hrs ago0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4 IN  0x7eb6b48a419cc00c4f621da01ef4e05b6ed22c780 FTM0.000145813542
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xc01b31ce785fc30555e1af4771773fb2e4dba3a675bcdc5ced9d1d84669ebfbf86760262022-04-12 16:26:17299 days 15 mins ago 0x7caa0a9558e1a3b18b10a7aa2c57799dc2bd37b4  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

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 FtmScan.com on 2022-04-12
*/

// 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"}]

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

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 Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading