S Price: $0.06747 (-3.66%)
Gas: 55 Gwei

Contract

0xC23542cd402Fe4f7C7539Fc0929b010992fADe44

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Set Rate356486332025-06-24 7:32:38216 days ago1750750358IN
0xC23542cd...992fADe44
0 S0.0018929662.47
Set Rate356469682025-06-24 7:21:52216 days ago1750749712IN
0xC23542cd...992fADe44
0 S0.0019426664.11
Set Rate306555182025-05-30 12:15:37241 days ago1748607337IN
0xC23542cd...992fADe44
0 S0.0016669155.01
Set Rate306553192025-05-30 12:14:33241 days ago1748607273IN
0xC23542cd...992fADe44
0 S0.0018332760.5
Set Rate306543472025-05-30 12:09:17241 days ago1748606957IN
0xC23542cd...992fADe44
0 S0.0016669155.01

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AdaptiveRateProvider

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
No with 200 runs

Other Settings:
shanghai EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./interfaces/IRateProvider.sol";

/// @notice This is used for volatile eclps which can adapt the range.
contract AdaptiveRateProvider is IRateProvider {
    uint256 public rate;
    address public admin;

    constructor(uint256 _rate, address _admin) {
        rate = _rate;
        admin = _admin;
    }

    function setRate(uint256 _rate) external {
        require(msg.sender == admin, "Only admin can set rate");
        rate = _rate;
    }

    function getRate() external view override returns (uint256) {
        return rate;
    }
}

File 2 of 2 : IRateProvider.sol
// SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.8.0;

// TODO: pull this from the monorepo
interface IRateProvider {
    function getRate() external view returns (uint256);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

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

608060405234801561000f575f5ffd5b506040516104783803806104788339818101604052810190610031919061010f565b815f819055508060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505061014d565b5f5ffd5b5f819050919050565b61009481610082565b811461009e575f5ffd5b50565b5f815190506100af8161008b565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100de826100b5565b9050919050565b6100ee816100d4565b81146100f8575f5ffd5b50565b5f81519050610109816100e5565b92915050565b5f5f604083850312156101255761012461007e565b5b5f610132858286016100a1565b9250506020610143858286016100fb565b9150509250929050565b61031e8061015a5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80632c4e722e1461004e57806334fcf4371461006c578063679aefce14610088578063f851a440146100a6575b5f5ffd5b6100566100c4565b60405161006391906101a6565b60405180910390f35b610086600480360381019061008191906101ed565b6100c9565b005b610090610161565b60405161009d91906101a6565b60405180910390f35b6100ae610169565b6040516100bb9190610257565b60405180910390f35b5f5481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014f906102ca565b60405180910390fd5b805f8190555050565b5f5f54905090565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f819050919050565b6101a08161018e565b82525050565b5f6020820190506101b95f830184610197565b92915050565b5f5ffd5b6101cc8161018e565b81146101d6575f5ffd5b50565b5f813590506101e7816101c3565b92915050565b5f60208284031215610202576102016101bf565b5b5f61020f848285016101d9565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61024182610218565b9050919050565b61025181610237565b82525050565b5f60208201905061026a5f830184610248565b92915050565b5f82825260208201905092915050565b7f4f6e6c792061646d696e2063616e2073657420726174650000000000000000005f82015250565b5f6102b4601783610270565b91506102bf82610280565b602082019050919050565b5f6020820190508181035f8301526102e1816102a8565b905091905056fea26469706673582212204622261cf9042ee20b2b5a53ec43b514b88c6104c0ffb921f1e61894a81d085e64736f6c634300081c003300000000000000000000000000000000000000000000008cf23f909c0fa00000000000000000000000000000229ec4a9ace38fc0b209dfd1bbe9435be94e8c55

Deployed Bytecode

0x608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80632c4e722e1461004e57806334fcf4371461006c578063679aefce14610088578063f851a440146100a6575b5f5ffd5b6100566100c4565b60405161006391906101a6565b60405180910390f35b610086600480360381019061008191906101ed565b6100c9565b005b610090610161565b60405161009d91906101a6565b60405180910390f35b6100ae610169565b6040516100bb9190610257565b60405180910390f35b5f5481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014f906102ca565b60405180910390fd5b805f8190555050565b5f5f54905090565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f819050919050565b6101a08161018e565b82525050565b5f6020820190506101b95f830184610197565b92915050565b5f5ffd5b6101cc8161018e565b81146101d6575f5ffd5b50565b5f813590506101e7816101c3565b92915050565b5f60208284031215610202576102016101bf565b5b5f61020f848285016101d9565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61024182610218565b9050919050565b61025181610237565b82525050565b5f60208201905061026a5f830184610248565b92915050565b5f82825260208201905092915050565b7f4f6e6c792061646d696e2063616e2073657420726174650000000000000000005f82015250565b5f6102b4601783610270565b91506102bf82610280565b602082019050919050565b5f6020820190508181035f8301526102e1816102a8565b905091905056fea26469706673582212204622261cf9042ee20b2b5a53ec43b514b88c6104c0ffb921f1e61894a81d085e64736f6c634300081c0033

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

00000000000000000000000000000000000000000000008cf23f909c0fa00000000000000000000000000000229ec4a9ace38fc0b209dfd1bbe9435be94e8c55

-----Decoded View---------------
Arg [0] : _rate (uint256): 2600000000000000000000
Arg [1] : _admin (address): 0x229EC4A9ACE38fC0b209DFD1Bbe9435BE94E8C55

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000008cf23f909c0fa00000
Arg [1] : 000000000000000000000000229ec4a9ace38fc0b209dfd1bbe9435be94e8c55


Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.