APE Price: $0.68 (+10.30%)

Contract

0x679a9D936B55f95c1EBd1f6A368F23Cdc6f85116

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IOUFeed

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 800 runs

Other Settings:
paris EvmVersion
File 1 of 2 : IOUChainlinkFeed.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import "../interfaces/IChainlinkFeed.sol";

/**
 * @dev Mock CL Feed contract for an IOU token hardcoded at 1e8 price
 */
contract IOUFeed is IChainlinkFeed {
    function decimals() external pure returns (uint8) {
        return 8;
    }

    /**
     * @dev Returns a hardcoded 1e8 price for a mock token
     */
    function latestRoundData() external pure returns (uint80, int256 priceUsd, uint256, uint256, uint80) {
        return (0, 1e8, 0, 0, 0);
    }
}

File 2 of 2 : IChainlinkFeed.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @dev Interface for Chainlink feeds
 */
interface IChainlinkFeed {
    function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80);

    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"priceUsd","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"pure","type":"function"}]

6080604052348015600f57600080fd5b5060b08061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063313ce567146037578063feaf968c14604b575b600080fd5b604051600881526020015b60405180910390f35b6040805160008082526305f5e100602083015291810182905260608101829052608081019190915260a001604256fea264697066735822122048af1185ffed28bca62f1a6c957af2213623cda39add4df42e5a6d0893610edc64736f6c63430008170033

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060325760003560e01c8063313ce567146037578063feaf968c14604b575b600080fd5b604051600881526020015b60405180910390f35b6040805160008082526305f5e100602083015291810182905260608101829052608081019190915260a001604256fea264697066735822122048af1185ffed28bca62f1a6c957af2213623cda39add4df42e5a6d0893610edc64736f6c63430008170033

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

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.