S Price: $0.553725 (+0.83%)

Contract

0xF5924fa4AF54229fC3078780Aa29ed2FF1DE79F3

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
wstSRateProvider

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
shanghai EvmVersion
File 1 of 2 : stS.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import { IRateProvider } from "../interfaces/IRateProvider.sol";

interface IstS {
  function getRate() external view returns (uint256);
}

contract wstSRateProvider is IRateProvider {
  IstS public immutable stS;
  uint256 public constant RATE_DECIMALS = 18;

  constructor(address _stS) {
    stS = IstS(_stS);
  }

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

  function rateDecimals() external pure returns (uint256) {
    return RATE_DECIMALS;
  }
}

File 2 of 2 : IRateProvider.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

interface IRateProvider {
  function getRate() external view returns (uint256);

  function rateDecimals() external view returns (uint256);
}

Settings
{
  "remappings": [
    "@aave/=node_modules/@aave/",
    "@account-abstraction/=node_modules/@account-abstraction/",
    "@chainlink/=node_modules/@chainlink/",
    "@eth-optimism/=node_modules/@chainlink/contracts/node_modules/@eth-optimism/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "@uniswap/=node_modules/@uniswap/",
    "base64-sol/=node_modules/base64-sol/",
    "ds-test/=lib/ds-test/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "forge-std/=lib/forge-std/src/",
    "hardhat/=node_modules/hardhat/",
    "solidity-bytes-utils/=node_modules/solidity-bytes-utils/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "solmate/=lib/solmate/src/",
    "abdk-libraries-solidity/=node_modules/abdk-libraries-solidity/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"RATE_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rateDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"stS","outputs":[{"internalType":"contract IstS","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a034606e57601f61023438819003918201601f19168301916001600160401b03831184841017607257808492602094604052833981010312606e57516001600160a01b03811690819003606e576080526040516101ad90816100878239608051818181606d01526101480152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c9081630a868f9f14610136575080631a3480b51461011b5780635a604c521461011b5763679aefce14610048575f80fd5b346100f1575f3660031901126100f1576040516333cd77e760e11b81526020816004817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa8015610110575f906100af575b602090604051908152f35b5060203d602011610109575b601f8101601f1916820167ffffffffffffffff8111838210176100f5576020918391604052810103126100f157602090516100a4565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b503d6100bb565b6040513d5f823e3d90fd5b346100f1575f3660031901126100f157602060405160128152f35b346100f1575f3660031901126100f1577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f3fea2646970667358221220e9e9db6fdaa83da75d3c8aa9a02112140c21f3503eee3528c51e9903aa82781e64736f6c634300081c0033000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955

Deployed Bytecode

0x6080806040526004361015610012575f80fd5b5f3560e01c9081630a868f9f14610136575080631a3480b51461011b5780635a604c521461011b5763679aefce14610048575f80fd5b346100f1575f3660031901126100f1576040516333cd77e760e11b81526020816004817f000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe39556001600160a01b03165afa8015610110575f906100af575b602090604051908152f35b5060203d602011610109575b601f8101601f1916820167ffffffffffffffff8111838210176100f5576020918391604052810103126100f157602090516100a4565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b503d6100bb565b6040513d5f823e3d90fd5b346100f1575f3660031901126100f157602060405160128152f35b346100f1575f3660031901126100f1577f000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe39556001600160a01b03168152602090f3fea2646970667358221220e9e9db6fdaa83da75d3c8aa9a02112140c21f3503eee3528c51e9903aa82781e64736f6c634300081c0033

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

000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955

-----Decoded View---------------
Arg [0] : _stS (address): 0xE5DA20F15420aD15DE0fa650600aFc998bbE3955

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955


Block Transaction 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

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.