ETH Price: $1,791.55 (-1.49%)

Contract

0xD43F5a722e8e7355D790adda4642f392Dfb820a1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ConstantRateProvider

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2024-09-04
*/

// 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);
}

/// @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;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b506040516100fe3803806100fe83398101604081905261002f91610037565b608052610050565b60006020828403121561004957600080fd5b5051919050565b60805160966100686000396000602f015260966000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063679aefce14602d575b600080fd5b7f000000000000000000000000000000000000000000000000000000000000000060405190815260200160405180910390f3fea26469706673582212201bbea136dd27422301e0598a4b87ff4f5fa6bd9d18369c11883e64cc1d7b934c64736f6c634300081100330000000000000000000000000000000000000000000000000001782296b9d909

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063679aefce14602d575b600080fd5b7f0000000000000000000000000000000000000000000000000001782296b9d90960405190815260200160405180910390f3fea26469706673582212201bbea136dd27422301e0598a4b87ff4f5fa6bd9d18369c11883e64cc1d7b934c64736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000001782296b9d909

-----Decoded View---------------
Arg [0] : rate (uint256): 413564929693961

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000001782296b9d909


Deployed Bytecode Sourcemap

420:254:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;580:91;658:5;580:91;;160:25:1;;;148:2;133:18;580:91:0;;;;;;

Swarm Source

ipfs://1bbea136dd27422301e0598a4b87ff4f5fa6bd9d18369c11883e64cc1d7b934c

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
Loading...
Loading

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.