APE Price: $1.11 (-3.12%)

Contract

0x50D353080004bF65B4f28cbf9947B5597E18154C

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Fallback Pri...84246422025-01-19 2:28:252 hrs ago1737253705IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...84206572025-01-19 0:33:223 hrs ago1737246802IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...83829442025-01-18 17:01:2311 hrs ago1737219683IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...83595802025-01-18 8:11:2120 hrs ago1737187881IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...83548722025-01-18 5:51:2222 hrs ago1737179482IN
0x50D35308...97E18154C
0 APE0.0009660825.42069
Set Fallback Pri...83521452025-01-18 4:21:2624 hrs ago1737174086IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...83510822025-01-18 3:43:2424 hrs ago1737171804IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...83369532025-01-17 20:27:2132 hrs ago1737145641IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...83219742025-01-17 15:12:2437 hrs ago1737126744IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...83100222025-01-17 7:08:2545 hrs ago1737097705IN
0x50D35308...97E18154C
0 APE0.0013167125.42069
Set Fallback Pri...76482882025-01-06 16:23:5112 days ago1736180631IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...76068312025-01-05 20:20:4313 days ago1736108443IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...75907442025-01-05 14:32:4713 days ago1736087567IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...75590362025-01-04 21:07:3914 days ago1736024859IN
0x50D35308...97E18154C
0 APE0.0009663925.42069
Set Fallback Pri...74993522025-01-03 16:24:4315 days ago1735921483IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...74972802025-01-03 15:47:3815 days ago1735919258IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...74926612025-01-03 13:22:3815 days ago1735910558IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...74864452025-01-03 9:56:3815 days ago1735898198IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...74639352025-01-02 22:18:4316 days ago1735856323IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...74472792025-01-02 10:52:3916 days ago1735815159IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...74460322025-01-02 9:57:3816 days ago1735811858IN
0x50D35308...97E18154C
0 APE0.0009663625.42069
Set Fallback Pri...74183392025-01-01 19:13:3717 days ago1735758817IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...73980752024-12-31 22:51:4318 days ago1735685503IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...73822482024-12-31 8:32:4118 days ago1735633961IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
Set Fallback Pri...73690522024-12-30 21:47:3819 days ago1735595258IN
0x50D35308...97E18154C
0 APE0.0009660625.42069
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

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

Contract Name:
PythPriceOracle

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 7 : PythPriceOracle.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "openzeppelin-contracts/contracts/access/Ownable.sol";
import "openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "./interfaces/IPyth.sol";
import "../../interfaces/IPriceOracle.sol";

contract PythPriceOracle is Ownable, IPriceOracle {
    /// @notice The min update interval (5 minutes)
    uint256 public constant UPDATE_INTERVAL = 5 minutes;

    /// @notice The max swing of the price per update (20%)
    uint256 public constant MAX_SWING = 2000;

    /// @notice The pyth oracle
    address public immutable pyth;

    /// @notice The poster address
    address public poster;

    struct PriceId {
        bytes32 priceId;
        bool reciprocal;
    }

    /// @notice The pyth price IDs
    mapping(address => PriceId[]) public pythPriceIds;

    /// @notice The fallback price of the assets
    mapping(address => uint256) public fallbackPrices;

    /// @notice The last updated time of the assets
    mapping(address => uint256) public lastUpdated;

    event PosterSet(address poster);

    event PriceIdSet(address asset, PriceId[] priceId);

    event FallbackPriceSet(address asset, uint256 price);

    modifier onlyPoster() {
        _checkPoster();
        _;
    }

    constructor(address _pyth) {
        pyth = _pyth;
    }

    /**
     * @notice Gets the pyth price IDs of an asset
     * @param asset The asset address
     * @return The pyth price IDs
     */
    function getPythPriceIds(address asset) external view returns (bytes32[] memory) {
        PriceId[] storage priceIds = pythPriceIds[asset];
        if (priceIds.length == 0) {
            return new bytes32[](0);
        }

        bytes32[] memory result = new bytes32[](priceIds.length);
        for (uint256 i = 0; i < priceIds.length;) {
            result[i] = priceIds[i].priceId;
            unchecked {
                i++;
            }
        }
        return result;
    }

    /**
     * @notice Gets the price of an asset
     * @param asset The asset to get the price of
     * @return The price of the asset
     */
    function getPrice(address asset) external view returns (uint256) {
        PriceId[] memory priceIds = pythPriceIds[asset];
        if (priceIds.length != 0) {
            uint256 price = 1e18;
            for (uint256 i = 0; i < priceIds.length;) {
                PriceId memory priceId = priceIds[i];

                if (priceId.reciprocal) {
                    price = price * 1e18 / _getPriceFromPyth(priceId.priceId);
                } else {
                    price = price * _getPriceFromPyth(priceId.priceId) / 1e18;
                }

                unchecked {
                    i++;
                }
            }
            return _getNormalizedPrice(price, asset);
        }

        uint256 fallbackPrice = fallbackPrices[asset];
        require(fallbackPrice > 0, "invalid fallback price");
        return fallbackPrice;
    }

    struct PriceData {
        address asset;
        uint256 price;
    }

    /**
     * @notice Sets the fallback price of the assets
     * @param priceData The price data
     */
    function setFallbackPrices(PriceData[] memory priceData) external onlyPoster {
        for (uint256 i = 0; i < priceData.length;) {
            address asset = priceData[i].asset;
            uint256 price = priceData[i].price;
            require(price > 0, "invalid price");

            // Check the max swing and last update time.
            if (fallbackPrices[asset] != 0) {
                uint256 maxPrice = fallbackPrices[asset] * (MAX_SWING + 10000) / 10000;
                uint256 minPrice = fallbackPrices[asset] * (10000 - MAX_SWING) / 10000;
                require(price <= maxPrice && price >= minPrice, "price swing too high");
                require(block.timestamp - lastUpdated[asset] >= UPDATE_INTERVAL, "min update interval not reached");
            }

            // Update the price and last updated time.
            fallbackPrices[asset] = price;
            lastUpdated[asset] = block.timestamp;

            emit FallbackPriceSet(asset, price);

            unchecked {
                i++;
            }
        }
    }

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

    /**
     * @notice Sets the poster address
     * @param _poster The poster address
     */
    function setPoster(address _poster) external onlyOwner {
        poster = _poster;

        emit PosterSet(_poster);
    }

    struct PythPriceIdData {
        address asset;
        PriceId[] priceIds;
    }

    /**
     * @notice Sets the pyth price IDs.
     * @param pythPriceIdData The pyth price ID data
     */
    function setPythPriceIds(PythPriceIdData[] memory pythPriceIdData) external onlyOwner {
        for (uint256 i = 0; i < pythPriceIdData.length;) {
            address asset = pythPriceIdData[i].asset;
            PriceId[] memory priceIds = pythPriceIdData[i].priceIds;

            if (priceIds.length == 0) {
                delete pythPriceIds[asset];
            } else {
                // Check the price IDs are valid.
                for (uint256 j = 0; j < priceIds.length;) {
                    bytes32 priceId = priceIds[j].priceId;
                    require(priceId != bytes32(0), "invalid price id");

                    IPyth.Price memory price = IPyth(pyth).getPriceUnsafe(priceId);
                    require(price.price > 0, "invalid price");

                    // Set the price feed.
                    pythPriceIds[asset].push(priceIds[j]);

                    unchecked {
                        j++;
                    }
                }

                emit PriceIdSet(asset, priceIds);
            }

            unchecked {
                i++;
            }
        }
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    /**
     * @dev Checks whether the caller is the poster
     */
    function _checkPoster() internal view {
        require(msg.sender == poster, "caller is not the poster");
    }

    /**
     * @dev Gets the price from the pyth price feed
     * @param priceId The price ID
     * @return The price
     */
    function _getPriceFromPyth(bytes32 priceId) internal view returns (uint256) {
        IPyth.Price memory price = IPyth(pyth).getPriceUnsafe(priceId);
        require(price.price > 0, "invalid price");

        uint8 decimals = uint8(-1 * int8(price.expo));

        // Extend the decimals to 1e18.
        return uint256(int256(price.price)) * 10 ** (18 - decimals);
    }

    /**
     * @dev Get the normalized price.
     * @param price The price
     * @param asset The asset
     * @return The normalized price
     */
    function _getNormalizedPrice(uint256 price, address asset) internal view returns (uint256) {
        uint8 decimals = IERC20Metadata(asset).decimals();
        return price * 10 ** (18 - decimals);
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 4 of 7 : IPyth.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IPyth {
    struct Price {
        // Price
        int64 price;
        // Confidence interval around the price
        uint64 conf;
        // Price exponent
        int32 expo;
        // Unix timestamp describing when the price was published
        uint256 publishTime;
    }

    function getPriceUnsafe(bytes32 id) external view returns (Price memory price);
}

File 5 of 7 : IPriceOracle.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IPriceOracle {
    function getPrice(address asset) external view returns (uint256);
}

File 6 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pyth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"FallbackPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"poster","type":"address"}],"name":"PosterSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"components":[{"internalType":"bytes32","name":"priceId","type":"bytes32"},{"internalType":"bool","name":"reciprocal","type":"bool"}],"indexed":false,"internalType":"struct PythPriceOracle.PriceId[]","name":"priceId","type":"tuple[]"}],"name":"PriceIdSet","type":"event"},{"inputs":[],"name":"MAX_SWING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATE_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fallbackPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getPythPriceIds","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pyth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"pythPriceIds","outputs":[{"internalType":"bytes32","name":"priceId","type":"bytes32"},{"internalType":"bool","name":"reciprocal","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct PythPriceOracle.PriceData[]","name":"priceData","type":"tuple[]"}],"name":"setFallbackPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_poster","type":"address"}],"name":"setPoster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"components":[{"internalType":"bytes32","name":"priceId","type":"bytes32"},{"internalType":"bool","name":"reciprocal","type":"bool"}],"internalType":"struct PythPriceOracle.PriceId[]","name":"priceIds","type":"tuple[]"}],"internalType":"struct PythPriceOracle.PythPriceIdData[]","name":"pythPriceIdData","type":"tuple[]"}],"name":"setPythPriceIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806373bbb71c11610097578063e7b2831811610066578063e7b2831814610206578063ed60d4b114610226578063f2fde38b14610239578063f98d06f01461024c57600080fd5b806373bbb71c146101ae57806380959721146101c157806389ac4147146101ec5780638da5cb5b146101f557600080fd5b8063437cd894116100d3578063437cd89414610160578063440e3d751461016957806362551b9914610191578063715018a6146101a657600080fd5b80630a6f93e6146100fa578063241d3a0b1461012d57806341976e091461014d575b600080fd5b61011a610108366004610db2565b60046020526000908152604090205481565b6040519081526020015b60405180910390f35b61011a61013b366004610db2565b60036020526000908152604090205481565b61011a61015b366004610db2565b610273565b61011a6107d081565b61017c610177366004610dcd565b610418565b60408051928352901515602083015201610124565b6101a461019f366004610e8b565b610457565b005b6101a46106c2565b6101a46101bc366004610db2565b6106d6565b6001546101d4906001600160a01b031681565b6040516001600160a01b039091168152602001610124565b61011a61012c81565b6000546001600160a01b03166101d4565b610219610214366004610db2565b610732565b6040516101249190611022565b6101a4610234366004611066565b61080c565b6101a4610247366004610db2565b610a55565b6101d47f0000000000000000000000002880ab155794e7179c9ee2e38200202908c17b4381565b6001600160a01b038116600090815260026020908152604080832080548251818502810185019093528083528493849084015b828210156102ea57600084815260209081902060408051808201909152600285029091018054825260019081015460ff1615158284015290835290920191016102a6565b50505050905080516000146103ad57670de0b6b3a764000060005b825181101561039a57600083828151811061032257610322611123565b6020026020010151905080602001511561036457805161034190610ace565b61035384670de0b6b3a764000061114f565b61035d919061116e565b9250610391565b670de0b6b3a764000061037a8260000151610ace565b610384908561114f565b61038e919061116e565b92505b50600101610305565b506103a58185610bc0565b949350505050565b6001600160a01b038316600090815260036020526040902054806104115760405162461bcd60e51b8152602060048201526016602482015275696e76616c69642066616c6c6261636b20707269636560501b60448201526064015b60405180910390fd5b9392505050565b6002602052816000526040600020818154811061043457600080fd5b60009182526020909120600290910201805460019091015490925060ff16905082565b61045f610c51565b60005b81518110156106be57600082828151811061047f5761047f611123565b602002602001015160000151905060008383815181106104a1576104a1611123565b60200260200101516020015190508051600014156104df576001600160a01b03821660009081526002602052604081206104da91610d55565b6106b4565b60005b81518110156106795760008282815181106104ff576104ff611123565b60209081029190910101515190508061054d5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a59081c1c9a58d9481a5960821b6044820152606401610408565b6040516396834ad360e01b8152600481018290526000907f0000000000000000000000002880ab155794e7179c9ee2e38200202908c17b436001600160a01b0316906396834ad390602401608060405180830381865afa1580156105b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d99190611190565b90506000816000015160070b136106025760405162461bcd60e51b815260040161040890611227565b6001600160a01b0385166000908152600260205260409020845185908590811061062e5761062e611123565b6020908102919091018101518254600180820185556000948552938390208251600290920201908155910151908201805460ff19169115159190911790559290920191506104e29050565b507f54a1ec5e9015ce61c4649d4236378c01f788937e0e1612f37b9bbb96b6dfbf4a82826040516106ab92919061124e565b60405180910390a15b5050600101610462565b5050565b6106ca610c51565b6106d46000610cab565b565b6106de610c51565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f41396c361649c0c9cf71194014fa094b85b661b853da4eb40877007c307e34fa9060200160405180910390a150565b6001600160a01b038116600090815260026020526040902080546060919061076e5760408051600080825260208201909252905b509392505050565b805460009067ffffffffffffffff81111561078b5761078b610df7565b6040519080825280602002602001820160405280156107b4578160200160208202803683370190505b50905060005b8254811015610766578281815481106107d5576107d5611123565b9060005260206000209060020201600001548282815181106107f9576107f9611123565b60209081029190910101526001016107ba565b610814610cfb565b60005b81518110156106be57600082828151811061083457610834611123565b6020026020010151600001519050600083838151811061085657610856611123565b6020026020010151602001519050600081116108845760405162461bcd60e51b815260040161040890611227565b6001600160a01b038216600090815260036020526040902054156109ed5760006127106108b36107d0826112b0565b6001600160a01b0385166000908152600360205260409020546108d6919061114f565b6108e0919061116e565b905060006127106108f36107d0826112c8565b6001600160a01b038616600090815260036020526040902054610916919061114f565b610920919061116e565b90508183111580156109325750808310155b6109755760405162461bcd60e51b81526020600482015260146024820152730e0e4d2c6ca40e6eed2dcce40e8dede40d0d2ced60631b6044820152606401610408565b6001600160a01b03841660009081526004602052604090205461012c9061099c90426112c8565b10156109ea5760405162461bcd60e51b815260206004820152601f60248201527f6d696e2075706461746520696e74657276616c206e6f742072656163686564006044820152606401610408565b50505b6001600160a01b03821660008181526003602090815260408083208590556004825291829020429055815192835282018390527f11560119f5dadb2845fc7f17575b7573978dcad306c3ec2586b702b90268dbae910160405180910390a15050600101610817565b610a5d610c51565b6001600160a01b038116610ac25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610408565b610acb81610cab565b50565b6040516396834ad360e01b81526004810182905260009081906001600160a01b037f0000000000000000000000002880ab155794e7179c9ee2e38200202908c17b4316906396834ad390602401608060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c9190611190565b90506000816000015160070b13610b855760405162461bcd60e51b815260040161040890611227565b60008160400151600019610b9991906112df565b9050610ba6816012611360565b610bb190600a611467565b82516103a5919060070b61114f565b600080826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c259190611476565b9050610c32816012611360565b610c3d90600a611467565b610c47908561114f565b9150505b92915050565b6000546001600160a01b031633146106d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610408565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b031633146106d45760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f742074686520706f7374657200000000000000006044820152606401610408565b5080546000825560020290600052602060002090810190610acb91905b80821115610d92576000815560018101805460ff19169055600201610d72565b5090565b80356001600160a01b0381168114610dad57600080fd5b919050565b600060208284031215610dc457600080fd5b61041182610d96565b60008060408385031215610de057600080fd5b610de983610d96565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610e3057610e30610df7565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610e5f57610e5f610df7565b604052919050565b600067ffffffffffffffff821115610e8157610e81610df7565b5060051b60200190565b600060208284031215610e9d57600080fd5b67ffffffffffffffff8083351115610eb457600080fd5b8235830184601f820112610ec757600080fd5b610ed9610ed48235610e67565b610e36565b81358082526020808301929160051b84010187811115610ef857600080fd5b602084015b81811015611015578581351115610f1357600080fd5b803585016040818b03601f19011215610f2b57600080fd5b610f33610e0d565b610f3f60208301610d96565b81528760408301351115610f5257600080fd5b6040820135820191508a603f830112610f6a57600080fd5b6020820135610f7b610ed482610e67565b81815260069190911b83016040019060208101908d831115610f9c57600080fd5b6040850194505b82851015610ff6576040858f031215610fbb57600080fd5b610fc3610e0d565b8535815260208601358015158114610fda57600080fd5b8060208301525080835250602082019150604085019450610fa3565b8060208501525050508086525050602084019350602081019050610efd565b5090979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561105a5783518352928401929184019160010161103e565b50909695505050505050565b6000602080838503121561107957600080fd5b823567ffffffffffffffff81111561109057600080fd5b8301601f810185136110a157600080fd5b80356110af610ed482610e67565b81815260069190911b820183019083810190878311156110ce57600080fd5b928401925b8284101561111857604084890312156110ec5760008081fd5b6110f4610e0d565b6110fd85610d96565b815284860135868201528252604090930192908401906110d3565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561116957611169611139565b500290565b60008261118b57634e487b7160e01b600052601260045260246000fd5b500490565b6000608082840312156111a257600080fd5b6040516080810167ffffffffffffffff82821081831117156111c6576111c6610df7565b81604052845191508160070b82146111dd57600080fd5b90825260208401519080821682146111f457600080fd5b5060208201526040830151600381900b811461120f57600080fd5b60408201526060928301519281019290925250919050565b6020808252600d908201526c696e76616c696420707269636560981b604082015260600190565b6001600160a01b038316815260406020808301829052835183830181905260009291858101916060860190855b818110156112a257845180518452840151151584840152938301939185019160010161127b565b509098975050505050505050565b600082198211156112c3576112c3611139565b500190565b6000828210156112da576112da611139565b500390565b60008082810b84820b82811383831382607f048411828216161561130557611305611139565b607f198584128281168683058612161561132157611321611139565b958512958387168583058712161561133b5761133b611139565b84607f058612818816161561135257611352611139565b505050910295945050505050565b600060ff821660ff84168082101561137a5761137a611139565b90039392505050565b600181815b808511156113be5781600019048211156113a4576113a4611139565b808516156113b157918102915b93841c9390800290611388565b509250929050565b6000826113d557506001610c4b565b816113e257506000610c4b565b81600181146113f857600281146114025761141e565b6001915050610c4b565b60ff84111561141357611413611139565b50506001821b610c4b565b5060208310610133831016604e8410600b8410161715611441575081810a610c4b565b61144b8383611383565b806000190482111561145f5761145f611139565b029392505050565b600061041160ff8416836113c6565b60006020828403121561148857600080fd5b815160ff8116811461041157600080fdfea2646970667358221220ee5885136cc68f4dd346b3253cf9b53d6a5b85e338928f5ed6c2a6dfcc8de69f64736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.