ETH Price: $3,038.78 (-6.68%)

Contract

0x28b3214684Dc4044e4Eaf7248FbB384192256BB5
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040741500252023-02-13 18:35:06425 days ago1676313306IN
 Create: USDPeggedTokenOracle
0 ETH0.0028982730

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
1075528332023-07-30 8:07:23258 days ago1690704443
0x28b32146...192256BB5
0 ETH
1075510662023-07-30 7:08:29258 days ago1690700909
0x28b32146...192256BB5
0 ETH
1075432082023-07-30 2:46:33259 days ago1690685193
0x28b32146...192256BB5
0 ETH
1074954722023-07-29 0:15:21260 days ago1690589721
0x28b32146...192256BB5
0 ETH
1074949172023-07-28 23:56:51260 days ago1690588611
0x28b32146...192256BB5
0 ETH
1074947322023-07-28 23:50:41260 days ago1690588241
0x28b32146...192256BB5
0 ETH
1074946362023-07-28 23:47:29260 days ago1690588049
0x28b32146...192256BB5
0 ETH
1074905972023-07-28 21:32:51260 days ago1690579971
0x28b32146...192256BB5
0 ETH
1074905212023-07-28 21:30:19260 days ago1690579819
0x28b32146...192256BB5
0 ETH
1074851392023-07-28 18:30:55260 days ago1690569055
0x28b32146...192256BB5
0 ETH
1074844292023-07-28 18:07:15260 days ago1690567635
0x28b32146...192256BB5
0 ETH
1074843002023-07-28 18:02:57260 days ago1690567377
0x28b32146...192256BB5
0 ETH
1074810702023-07-28 16:15:17260 days ago1690560917
0x28b32146...192256BB5
0 ETH
1074810592023-07-28 16:14:55260 days ago1690560895
0x28b32146...192256BB5
0 ETH
1074810592023-07-28 16:14:55260 days ago1690560895
0x28b32146...192256BB5
0 ETH
1074808112023-07-28 16:06:39260 days ago1690560399
0x28b32146...192256BB5
0 ETH
1074805972023-07-28 15:59:31260 days ago1690559971
0x28b32146...192256BB5
0 ETH
1074762202023-07-28 13:33:37260 days ago1690551217
0x28b32146...192256BB5
0 ETH
1074760032023-07-28 13:26:23260 days ago1690550783
0x28b32146...192256BB5
0 ETH
1074759132023-07-28 13:23:23260 days ago1690550603
0x28b32146...192256BB5
0 ETH
1074758212023-07-28 13:20:19260 days ago1690550419
0x28b32146...192256BB5
0 ETH
1074693102023-07-28 9:43:17260 days ago1690537397
0x28b32146...192256BB5
0 ETH
1073412382023-07-25 10:34:13263 days ago1690281253
0x28b32146...192256BB5
0 ETH
1073405652023-07-25 10:11:47263 days ago1690279907
0x28b32146...192256BB5
0 ETH
1073397212023-07-25 9:43:39263 days ago1690278219
0x28b32146...192256BB5
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
USDPeggedTokenOracle

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 5000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : USDPeggedTokenOracle.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

import "../../interfaces/periphery/ITokenOracle.sol";

/**
 * @title Oracle for USD hard pegged token
 * @dev This oracle shouldn't be used for stable coins! Its purpose is for a specific use case that's the Synth USD token.
 */
contract USDPeggedTokenOracle is ITokenOracle {
    /// @inheritdoc ITokenOracle
    function getPriceInUsd(address) external pure override returns (uint256 _priceInUsd) {
        return 1e18;
    }
}

File 2 of 2 : ITokenOracle.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface ITokenOracle {
    /**
     * @notice Get USD (or equivalent) price of an asset
     * @param token_ The address of asset
     * @return _priceInUsd The USD price
     */
    function getPriceInUsd(address token_) external view returns (uint256 _priceInUsd);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 5000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getPriceInUsd","outputs":[{"internalType":"uint256","name":"_priceInUsd","type":"uint256"}],"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b5060c88061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806307ee40bf14602d575b600080fd5b604560383660046057565b50670de0b6b3a764000090565b60405190815260200160405180910390f35b600060208284031215606857600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114608b57600080fd5b939250505056fea26469706673582212200ab136214873400e4746279bbfaabe73fb4b6395540b3561a891183ddd8b0fa264736f6c63430008090033

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060285760003560e01c806307ee40bf14602d575b600080fd5b604560383660046057565b50670de0b6b3a764000090565b60405190815260200160405180910390f35b600060208284031215606857600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114608b57600080fd5b939250505056fea26469706673582212200ab136214873400e4746279bbfaabe73fb4b6395540b3561a891183ddd8b0fa264736f6c63430008090033

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.