Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Price_w | 10382652 | 17 hrs ago | IN | 0 S | 0.00834905 |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x58e57cA1...d3D703b0f The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
CryptoFromOracleAndRedstone
Compiler Version
vyper:0.3.10
Contract Source Code (Vyper language format)
# @version 0.3.10 """ @title CryptoFromOracleAndRedstone @author Curve.Fi @license MIT """ interface Oracle: def price() -> uint256: view def price_w() -> uint256: nonpayable interface Redstone: def latestAnswer() -> uint256: view def decimals() -> uint256: view ORACLE: public(immutable(Oracle)) REDSTONE: public(immutable(Redstone)) DECIMAL_MULTIPLIER: public(immutable(uint256)) @external def __init__( oracle: Oracle, redstone: Redstone ): ORACLE = oracle REDSTONE = redstone DECIMAL_MULTIPLIER = 10**(18 - redstone.decimals()) @external @view def price() -> uint256: p1: uint256 = ORACLE.price() p2: uint256 = REDSTONE.latestAnswer() assert p2 > 0 return p1 * p2 * DECIMAL_MULTIPLIER / 10**18 @external def price_w() -> uint256: p1: uint256 = ORACLE.price_w() p2: uint256 = REDSTONE.latestAnswer() assert p2 > 0 return p1 * p2 * DECIMAL_MULTIPLIER / 10**18
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"oracle","type":"address"},{"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":"ORACLE","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"REDSTONE","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"DECIMAL_MULTIPLIER","inputs":[],"outputs":[{"name":"","type":"uint256"}]}]
Deployed Bytecode
0x5f3560e01c60026003821660011b61022d01601e395f51565b6338013f028118610036573461022957602061023560403960206040f35b63a035b1fe811861022557346102295760206102355f395f5163a035b1fe606052602060606004607c845afa61006e573d5f5f3e3d5ffd5b60203d1061022957606090505160405260206102555f395f516350d25bcd608052602060806004609c845afa6100a6573d5f5f3e3d5ffd5b60203d106102295760809050516060526060511561022957604051606051808202811583838304141715610229579050905060206102755f395f518082028115838383041417156102295790509050670de0b6b3a76400008104905060805260206080f3610225565b639f21b3bd811861012d573461022957602061025560403960206040f35b63ceb7f759811861022557346102295760206102355f395f5163ceb7f759606052602060606004607c5f855af1610166573d5f5f3e3d5ffd5b60203d1061022957606090505160405260206102555f395f516350d25bcd608052602060806004609c845afa61019e573d5f5f3e3d5ffd5b60203d106102295760809050516060526060511561022957604051606051808202811583838304141715610229579050905060206102755f395f518082028115838383041417156102295790509050670de0b6b3a76400008104905060805260206080f3610225565b631aef80588118610225573461022957602061027560403960206040f35b5f5ffd5b5f80fd0207010f00180225000000000000000000000000b755b949c126c04e0348dd881a5cf55d424742b200000000000000000000000024c8964338deb5204b096039147b8e8c3aea42cc00000000000000000000000000000000000000000000000000000002540be400
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.