Discover more of SonicScan Block Explorer's tools and services in one place.
Contract Source Code:
File 1 of 2 : ConstantRateProvider.sol
// 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; import "../../interfaces/oracles/IRateProvider.sol"; /// @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; } }
File 2 of 2 : IRateProvider.sol
// 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); }
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.