S Price: $0.728496 (+0.13%)

Contract

0x48A68C5511DfC355007b7B794890F26653A7bF93

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Price_w103861002025-02-26 21:25:3617 hrs ago1740605136IN
0x48A68C55...653A7bF93
0 S0.0029387765.41943502

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

Contract Source Code Verified (Exact Match)

Contract Name:
OracleFromRedstone

Compiler Version
vyper:0.3.10

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license

Contract Source Code (Vyper language format)

# @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

Contract Security Audit

Contract ABI

[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"redstone","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"price","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"price_w","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"REDSTONE","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"DECIMAL_MULTIPLIER","inputs":[],"outputs":[{"name":"","type":"uint256"}]}]

6101625150346100855760206101e05f395f518060a01c610085576040526040516101425260405163313ce567606052602060606004607c845afa610046573d5f5f3e3d5ffd5b60203d106100855760609050518060120360128111610085579050604d81116100855780600a0a90506101625261014261008961000039610182610000f35b5f80fd5f3560e01c60026003821660011b61013a01601e395f51565b639f21b3bd8118610036573461013657602061014260403960206040f35b63ceb7f759811861013257346101365760206101425f395f516350d25bcd604052602060406004605c845afa61006e573d5f5f3e3d5ffd5b60203d1061013657604090505160206101625f395f51808202811583838304141715610136579050905060805260206080f3610132565b631aef80588118610132573461013657602061016260403960206040f3610132565b63a035b1fe811861013257346101365760206101425f395f516350d25bcd604052602060406004605c845afa6100ff573d5f5f3e3d5ffd5b60203d1061013657604090505160206101625f395f51808202811583838304141715610136579050905060805260206080f35b5f5ffd5b5f80fd00a5001800c701328419014281081840a16576797065728300030a0015000000000000000000000000b81131b6368b3f0a83af09db4e39ac23da96c2db

Deployed Bytecode

0x5f3560e01c60026003821660011b61013a01601e395f51565b639f21b3bd8118610036573461013657602061014260403960206040f35b63ceb7f759811861013257346101365760206101425f395f516350d25bcd604052602060406004605c845afa61006e573d5f5f3e3d5ffd5b60203d1061013657604090505160206101625f395f51808202811583838304141715610136579050905060805260206080f3610132565b631aef80588118610132573461013657602061016260403960206040f3610132565b63a035b1fe811861013257346101365760206101425f395f516350d25bcd604052602060406004605c845afa6100ff573d5f5f3e3d5ffd5b60203d1061013657604090505160206101625f395f51808202811583838304141715610136579050905060805260206080f35b5f5ffd5b5f80fd00a5001800c70132000000000000000000000000b81131b6368b3f0a83af09db4e39ac23da96c2db00000000000000000000000000000000000000000000000000000002540be400

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

000000000000000000000000b81131b6368b3f0a83af09db4e39ac23da96c2db

-----Decoded View---------------
Arg [0] : redstone (address): 0xb81131B6368b3F0a83af09dB4E39Ac23DA96C2Db

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


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
[ Download: CSV Export  ]

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.