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 0xECDfaa45...4E0eA2Bd7 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ConstantRateProvider
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
berlin EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LicenseRef-Gyro-1.0 // for information on licensing please see the README in the GitHub repository <https://github.com/gyrostable/core-protocol>. pragma solidity ^0.8.4; import "../../interfaces/oracles/IRateProvider.sol"; /// @notice This is used for tokens such as aTokens where assets are wrapped /// in a token where the rate is always the same contract ConstantRateProvider is IRateProvider { uint256 internal immutable _rate; constructor(uint256 rate) { _rate = rate; } function getRate() external view override returns (uint256) { return _rate; } }
// SPDX-License-Identifier: LicenseRef-Gyro-1.0 // for information on licensing please see the README in the GitHub repository <https://github.com/gyrostable/core-protocol>. pragma solidity ^0.8.4; interface IRateProvider { function getRate() external view returns (uint256); }
{ "evmVersion": "berlin", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063679aefce14602d575b600080fd5b7f000000000000000000000000000000000000000000000001e5b8fa8fe2ac000060405190815260200160405180910390f3fea264697066735822122005a7ec5b7619064716cc1e5da63c98800cafcca382989f95b73e06d16381cad264736f6c63430008110033
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.