FRAX Price: $0.93 (+1.61%)

Contract

0xaBBeFFb0d24EAcFFD3Be194471F0FD8aaaa3e5f8

Overview

FRAX Balance | FXTL Balance

0 FRAX | 4,712 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Age:90D
Reset Filter

Transaction Hash
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
L1VeFXSTotalSupplyOracle

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at fraxscan.com on 2024-06-07
*/

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;


// src/contracts/VestedFXS-and-Flox/VestedFXS/OwnedV2.sol

// https://docs.synthetix.io/contracts/Owned
contract OwnedV2 {
    error OwnerCannotBeZero();
    error InvalidOwnershipAcceptance();
    error OnlyOwner();

    address public owner;
    address public nominatedOwner;

    constructor(address _owner) {
        // require(_owner != address(0), "Owner address cannot be 0");
        if (_owner == address(0)) revert OwnerCannotBeZero();
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        // require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        if (msg.sender != nominatedOwner) revert InvalidOwnershipAcceptance();
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner() {
        // require(msg.sender == owner, "Only the contract owner may perform this action");
        if (msg.sender != owner) revert OnlyOwner();
        _;
    }

    function _onlyOwner() internal view {
        if (msg.sender != owner) revert OnlyOwner();
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

// src/contracts/VestedFXS-and-Flox/VestedFXS/L1VeFXSTotalSupplyOracle.sol

/**
 * ====================================================================
 * |     ______                   _______                             |
 * |    / _____________ __  __   / ____(_____  ____ _____  ________   |
 * |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
 * |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
 * | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
 * |                                                                  |
 * ====================================================================
 * ===================== L1VeFXSTotalSupplyOracle =====================
 * ====================================================================
 * Bot-set Oracle for reporting the Ethereum Mainnet veFXS totalSupply() info.
 * Eventually plan to update L1VeFXS with a proof-based solution
 * Frax Finance: https://github.com/FraxFinance
 */

/* solhint-disable max-line-length, not-rely-on-time */

contract L1VeFXSTotalSupplyOracle is OwnedV2 {
    /// @notice The last veFXS totalSupply data point
    uint256 public totalSupplyStored;

    /// @notice The block on Mainnet when the veFXS totalSupply was read
    uint128 public blkWhenTotalSupplyRead;

    /// @notice The timestamp on Mainnet when the veFXS totalSupply was read
    uint128 public tsWhenTotalSupplyRead;

    /// @notice When the information was last updated by the bot
    uint256 public lastBotUpdate;

    /// @notice Address of the bot that is allowed to update the contract
    address public botAddress;

    /**
     * @notice Initialize contract
     * @param _owner The owner of this contract
     * @param _bot Address of the bot that is allowed to post
     * @param _initTtlSupplyStored Initial/seed value of totalSupplyStored
     * @param _initBlkWhenTotalSupplyRead Initial/seed value of blkWhenTotalSupplyRead
     * @param _initTsWhenTtlSupplyRead Initial/seed value of tsWhenTotalSupplyRead
     */
    constructor(
        address _owner,
        address _bot,
        uint256 _initTtlSupplyStored,
        uint128 _initBlkWhenTotalSupplyRead,
        uint128 _initTsWhenTtlSupplyRead
    ) OwnedV2(_owner) {
        // Set bot address
        botAddress = _bot;

        // Set seed values
        totalSupplyStored = _initTtlSupplyStored;
        blkWhenTotalSupplyRead = _initBlkWhenTotalSupplyRead;
        tsWhenTotalSupplyRead = _initTsWhenTtlSupplyRead;
        if (_initTsWhenTtlSupplyRead > 0) lastBotUpdate = _initTsWhenTtlSupplyRead;
    }

    /* ========== MODIFIERS ========== */

    modifier onlyByOwnBot() {
        require(msg.sender == owner || msg.sender == botAddress, "You are not the owner or the bot");
        _;
    }

    /* ============ VIEWS ============ */

    /// @notice Get the most recent totalSupply from Mainnet veFXS
    /// @param _totalSupply The last reported Mainnet veFXS totalSupply
    function totalSupply() external view returns (uint256 _totalSupply) {
        return totalSupplyStored;
    }

    /// @notice Get the most recent totalSupply from Mainnet veFXS along with the time it was read
    /// @param _totalSupply The last reported Mainnet veFXS totalSupply
    /// @param _blk Block when the totalSupply was read on Mainnet
    /// @param _ts Timestamp when the totalSupply was read on Mainnet
    function totalSupplyExtra() external view returns (uint256 _totalSupply, uint128 _blk, uint128 _ts) {
        return (totalSupplyStored, blkWhenTotalSupplyRead, tsWhenTotalSupplyRead);
    }

    // ==============================================================================
    // BOT FUNCTIONS
    // ==============================================================================

    /// @notice Set the most recent totalSupply from Mainnet veFXS
    /// @param _totalSupply The last reported Mainnet veFXS totalSupply
    /// @param _blk Block when the totalSupply was read on Mainnet
    /// @param _ts Timestamp when the totalSupply was read on Mainnet
    function updateInfo(uint256 _totalSupply, uint128 _blk, uint128 _ts) external onlyByOwnBot {
        totalSupplyStored = _totalSupply;
        blkWhenTotalSupplyRead = _blk;
        tsWhenTotalSupplyRead = _ts;
    }

    // ==============================================================================
    // RESTRICTED FUNCTIONS
    // ==============================================================================

    /// @notice Set the bot address
    /// @param _newBot The address of the bot
    function setBot(address _newBot) external onlyOwner {
        botAddress = _newBot;
    }

    // ==============================================================================
    // EVENTS
    // ==============================================================================

    /// @notice When the veFXS info is updated
    /// @param totalSupply veFXS totalSupply from mainnet
    /// @param blk Block when the totalSupply was read on Mainnet
    /// @param ts Timestamp when the totalSupply was read on Mainnet
    event InfoUpdated(uint256 totalSupply, uint128 blk, uint128 ts);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_bot","type":"address"},{"internalType":"uint256","name":"_initTtlSupplyStored","type":"uint256"},{"internalType":"uint128","name":"_initBlkWhenTotalSupplyRead","type":"uint128"},{"internalType":"uint128","name":"_initTsWhenTtlSupplyRead","type":"uint128"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidOwnershipAcceptance","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[],"name":"OwnerCannotBeZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"blk","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"ts","type":"uint128"}],"name":"InfoUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blkWhenTotalSupplyRead","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"botAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBotUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newBot","type":"address"}],"name":"setBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyExtra","outputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint128","name":"_blk","type":"uint128"},{"internalType":"uint128","name":"_ts","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tsWhenTotalSupplyRead","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint128","name":"_blk","type":"uint128"},{"internalType":"uint128","name":"_ts","type":"uint128"}],"name":"updateInfo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561000f575f80fd5b5060405161081c38038061081c83398101604081905261002e91610135565b846001600160a01b03811661005657604051639b15e16f60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a150600580546001600160a01b0319166001600160a01b03861617905560028390556001600160801b03828116600160801b91831691820217600355156100fa576001600160801b0381166004555b505050505061018f565b80516001600160a01b038116811461011a575f80fd5b919050565b80516001600160801b038116811461011a575f80fd5b5f805f805f60a08688031215610149575f80fd5b61015286610104565b945061016060208701610104565b9350604086015192506101756060870161011f565b91506101836080870161011f565b90509295509295909350565b6106808061019c5f395ff3fe608060405234801561000f575f80fd5b50600436106100da575f3560e01c80636b5caec4116100885780638da5cb5b116100635780638da5cb5b1461020a5780638da7b32b1461022957806391e7d9e914610232578063ef1c243a1461027c575f80fd5b80636b5caec4146101dc57806376867c7f146101ef57806379ba509714610202575f80fd5b80634bf4f423116100b85780634bf4f4231461014757806353a47bb71461018c5780636b1253ef146101ac575f80fd5b80630d34b840146100de5780631627540c1461012057806318160ddd14610135575b5f80fd5b6003546100fa906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61013361012e3660046105b3565b610285565b005b6002545b604051908152602001610117565b6005546101679073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610117565b6001546101679073ffffffffffffffffffffffffffffffffffffffff1681565b6003546100fa9070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b6101336101ea3660046105b3565b61034e565b6101336101fd366004610611565b6103e5565b6101336104c0565b5f546101679073ffffffffffffffffffffffffffffffffffffffff1681565b61013960045481565b600254600354604080519283526fffffffffffffffffffffffffffffffff808316602085015270010000000000000000000000000000000090920490911690820152606001610117565b61013960025481565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146102d5576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b5f5473ffffffffffffffffffffffffffffffffffffffff16331461039e576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f5473ffffffffffffffffffffffffffffffffffffffff16331480610421575060055473ffffffffffffffffffffffffffffffffffffffff1633145b61048b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f596f7520617265206e6f7420746865206f776e6572206f722074686520626f74604482015260640160405180910390fd5b6002929092556fffffffffffffffffffffffffffffffff91821670010000000000000000000000000000000002911617600355565b60015473ffffffffffffffffffffffffffffffffffffffff163314610511576040517fd74b334e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180545f80547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b5f602082840312156105c3575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105e6575f80fd5b9392505050565b80356fffffffffffffffffffffffffffffffff8116811461060c575f80fd5b919050565b5f805f60608486031215610623575f80fd5b83359250610633602085016105ed565b9150610641604085016105ed565b9050925092509256fea2646970667358221220db36b2644581a28899e9158c180b506218ead060b77a03db1111f9b75d8aa0e664736f6c634300081a0033000000000000000000000000c4eb45d80dc1f079045e75d5d55de8ed1c1090e6000000000000000000000000bb437059584e30598b3af0154472e47e6e2a45b90000000000000000000000000000000000000000004d3a80da78ea0a6c57dacf000000000000000000000000000000000000000000000000000000000131cab00000000000000000000000000000000000000000000000000000000066631097

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100da575f3560e01c80636b5caec4116100885780638da5cb5b116100635780638da5cb5b1461020a5780638da7b32b1461022957806391e7d9e914610232578063ef1c243a1461027c575f80fd5b80636b5caec4146101dc57806376867c7f146101ef57806379ba509714610202575f80fd5b80634bf4f423116100b85780634bf4f4231461014757806353a47bb71461018c5780636b1253ef146101ac575f80fd5b80630d34b840146100de5780631627540c1461012057806318160ddd14610135575b5f80fd5b6003546100fa906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61013361012e3660046105b3565b610285565b005b6002545b604051908152602001610117565b6005546101679073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610117565b6001546101679073ffffffffffffffffffffffffffffffffffffffff1681565b6003546100fa9070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b6101336101ea3660046105b3565b61034e565b6101336101fd366004610611565b6103e5565b6101336104c0565b5f546101679073ffffffffffffffffffffffffffffffffffffffff1681565b61013960045481565b600254600354604080519283526fffffffffffffffffffffffffffffffff808316602085015270010000000000000000000000000000000090920490911690820152606001610117565b61013960025481565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146102d5576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b5f5473ffffffffffffffffffffffffffffffffffffffff16331461039e576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f5473ffffffffffffffffffffffffffffffffffffffff16331480610421575060055473ffffffffffffffffffffffffffffffffffffffff1633145b61048b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f596f7520617265206e6f7420746865206f776e6572206f722074686520626f74604482015260640160405180910390fd5b6002929092556fffffffffffffffffffffffffffffffff91821670010000000000000000000000000000000002911617600355565b60015473ffffffffffffffffffffffffffffffffffffffff163314610511576040517fd74b334e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180545f80547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b5f602082840312156105c3575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105e6575f80fd5b9392505050565b80356fffffffffffffffffffffffffffffffff8116811461060c575f80fd5b919050565b5f805f60608486031215610623575f80fd5b83359250610633602085016105ed565b9150610641604085016105ed565b9050925092509256fea2646970667358221220db36b2644581a28899e9158c180b506218ead060b77a03db1111f9b75d8aa0e664736f6c634300081a0033

Deployed Bytecode Sourcemap

2617:4201:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2839:37;;;;;;;;;;;;190:34:1;178:47;;;160:66;;148:2;133:18;2839:37:0;;;;;;;;623:141;;;;;;:::i;:::-;;:::i;:::-;;4591:111;4677:17;;4591:111;;;697:25:1;;;685:2;670:18;4591:111:0;551:177:1;3186:25:0;;;;;;;;;;;;909:42:1;897:55;;;879:74;;867:2;852:18;3186:25:0;733:226:1;333:29:0;;;;;;;;;2963:36;;;;;;;;;;;;6217:91;;;;;;:::i;:::-;;:::i;5700:220::-;;;;;;:::i;:::-;;:::i;772:354::-;;;:::i;306:20::-;;;;;;;;;3074:28;;;;;;5022:192;5141:17;;5160:22;;5022:192;;;1692:25:1;;;5160:22:0;;;;1748:2:1;1733:18;;1726:75;5184:21:0;;;;;;;1817:18:1;;;1810:75;1680:2;1665:18;5022:192:0;1490:401:1;2724:32:0;;;;;;623:141;1277:5;;;;1263:10;:19;1259:43;;1291:11;;;;;;;;;;;;;;1259:43;695:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;734:22:::1;::::0;879:74:1;;;734:22:0::1;::::0;867:2:1;852:18;734:22:0::1;;;;;;;623:141:::0;:::o;6217:91::-;1277:5;;;;1263:10;:19;1259:43;;1291:11;;;;;;;;;;;;;;1259:43;6280:10:::1;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;6217:91::o;5700:220::-;4307:5;;;;4293:10;:19;;:47;;-1:-1:-1;4330:10:0;;;;4316;:24;4293:47;4285:92;;;;;;;2098:2:1;4285:92:0;;;2080:21:1;;;2117:18;;;2110:30;2176:34;2156:18;;;2149:62;2228:18;;4285:92:0;;;;;;;;5802:17:::1;:32:::0;;;;5845:29:::1;5885:27:::0;;::::1;::::0;::::1;5845:29:::0;::::1;5885:27;5845:22;5885:27:::0;5700:220::o;772:354::-;945:14;;;;931:10;:28;927:69;;968:28;;;;;;;;;;;;;;927:69;1025:5;;;1032:14;1012:35;;;1025:5;;;;2431:74:1;;1032:14:0;;;;2536:2:1;2521:18;;2514:83;1012:35:0;;2404:18:1;1012:35:0;;;;;;;1066:14;;;;1058:22;;;;;;1066:14;;;1058:22;;;;1091:27;;;772:354::o;237:309:1:-;296:6;349:2;337:9;328:7;324:23;320:32;317:52;;;365:1;362;355:12;317:52;404:9;391:23;454:42;447:5;443:54;436:5;433:65;423:93;;512:1;509;502:12;423:93;535:5;237:309;-1:-1:-1;;;237:309:1:o;964:188::-;1032:20;;1092:34;1081:46;;1071:57;;1061:85;;1142:1;1139;1132:12;1061:85;964:188;;;:::o;1157:328::-;1234:6;1242;1250;1303:2;1291:9;1282:7;1278:23;1274:32;1271:52;;;1319:1;1316;1309:12;1271:52;1355:9;1342:23;1332:33;;1384:38;1418:2;1407:9;1403:18;1384:38;:::i;:::-;1374:48;;1441:38;1475:2;1464:9;1460:18;1441:38;:::i;:::-;1431:48;;1157:328;;;;;:::o

Swarm Source

ipfs://db36b2644581a28899e9158c180b506218ead060b77a03db1111f9b75d8aa0e6

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.