Discover more of SonicScan Block Explorer's tools and services in one place.
Contract Source Code:
File 1 of 1 : OracleFromRedstone
# @version 0.3.10 """ @title OracleFromRedstone @author Curve.Fi @license MIT """ interface Redstone: def latestAnswer() -> uint256: view def decimals() -> uint256: view REDSTONE: public(immutable(Redstone)) DECIMAL_MULTIPLIER: public(immutable(uint256)) @external def __init__( redstone: Redstone ): REDSTONE = redstone DECIMAL_MULTIPLIER = 10**(18 - redstone.decimals()) @external @view def price() -> uint256: return REDSTONE.latestAnswer() * DECIMAL_MULTIPLIER @external def price_w() -> uint256: return REDSTONE.latestAnswer() * DECIMAL_MULTIPLIER
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.