S Price: $0.575965 (-2.76%)

Contract

0x812C09f36577f576dCBC40C0ec14D809A4156d0d

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S 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

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

Contract Name:
ChainLinkRateProvider

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 1 : ChainLinkRateProvider.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

interface IRateProvider {
    function getRate() external view returns (uint256 rate);
}

interface IChainLinkOracle {
    function latestAnswer() external view returns (int256);
    function decimals() external view returns (uint8);
}

contract ChainLinkRateProvider is IRateProvider {
    IChainLinkOracle public immutable oracle;

    constructor(address _oracle) {
        oracle = IChainLinkOracle(_oracle);
    }

    function getRate() external view returns (uint256) {
        return uint256(oracle.latestAnswer()) * 10 ** (18 - oracle.decimals());
    }
}

Settings
{
  "remappings": [
    "@balancer-v3-monorepo/interfaces/=lib/balancer-v3-monorepo/pkg/interfaces/contracts/",
    "@balancer-v3-monorepo/vault/=lib/balancer-v3-monorepo/pkg/vault/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@permit2/=lib/permit2/src/",
    "@balancer-labs/=lib/balancer-v3-monorepo/node_modules/@balancer-labs/",
    "balancer-v3-monorepo/=lib/balancer-v3-monorepo/",
    "ds-test/=lib/balancer-v3-monorepo/node_modules/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "eth-gas-reporter/=lib/balancer-v3-monorepo/node_modules/eth-gas-reporter/",
    "forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "hardhat/=lib/balancer-v3-monorepo/node_modules/hardhat/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "permit2/=lib/permit2/",
    "solmate/=lib/permit2/lib/solmate/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IChainLinkOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063679aefce146100385780637dc0d1d014610053575b5f5ffd5b610040610092565b6040519081526020015b60405180910390f35b61007a7f000000000000000000000000c76dfb89ff298145b417d221b2c747d84952e01d81565b6040516001600160a01b03909116815260200161004a565b5f7f000000000000000000000000c76dfb89ff298145b417d221b2c747d84952e01d6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100ef573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061011391906101b8565b61011e9060126101f3565b61012990600a6102f5565b7f000000000000000000000000c76dfb89ff298145b417d221b2c747d84952e01d6001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610185573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a99190610303565b6101b3919061031a565b905090565b5f602082840312156101c8575f5ffd5b815160ff811681146101d8575f5ffd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b60ff828116828216039081111561020c5761020c6101df565b92915050565b6001815b600184111561024d57808504811115610231576102316101df565b600184161561023f57908102905b60019390931c928002610216565b935093915050565b5f826102635750600161020c565b8161026f57505f61020c565b8160018114610285576002811461028f576102ab565b600191505061020c565b60ff8411156102a0576102a06101df565b50506001821b61020c565b5060208310610133831016604e8410600b84101617156102ce575081810a61020c565b6102da5f198484610212565b805f19048211156102ed576102ed6101df565b029392505050565b5f6101d860ff841683610255565b5f60208284031215610313575f5ffd5b5051919050565b808202811582820484141761020c5761020c6101df56fea2646970667358221220b94e82b7f40f431f78e315b5e4f697ee292cebbc5cceea5656e7bc2548270d1264736f6c634300081b0033

Block Transaction 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.