Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
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"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516100fe3803806100fe83398101604081905261002f91610037565b608052610050565b60006020828403121561004957600080fd5b5051919050565b60805160966100686000396000602f015260966000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063679aefce14602d575b600080fd5b7f000000000000000000000000000000000000000000000000000000000000000060405190815260200160405180910390f3fea264697066735822122005a7ec5b7619064716cc1e5da63c98800cafcca382989f95b73e06d16381cad264736f6c634300081100330000000000000000000000000000000000000000000000b2e4b323d9c5100000
Deployed Bytecode
0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063679aefce14602d575b600080fd5b7f0000000000000000000000000000000000000000000000b2e4b323d9c510000060405190815260200160405180910390f3fea264697066735822122005a7ec5b7619064716cc1e5da63c98800cafcca382989f95b73e06d16381cad264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000b2e4b323d9c5100000
-----Decoded View---------------
Arg [0] : rate (uint256): 3300000000000000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000b2e4b323d9c5100000
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.