Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
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
Contract Source Code (Solidity Standard Json-Input format)
// 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()); } }
{ "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
- No Contract Security Audit Submitted- Submit Audit Here
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.