S Price: $0.532939 (-2.96%)

Contract Diff Checker

Contract Name:
wstSRateProvider

Contract Source Code:

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

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

Context size (optional):