Discover more of SonicScan Block Explorer's tools and services in one place.
Contract Source Code:
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); }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.