ETH Price: $1,975.07 (+0.72%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x61032951234340092025-09-24 16:12:23150 days ago1758730343  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x68e46918...E00dC461b
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CryptopoolLPOracle

Compiler Version
vyper:0.4.3

Optimization Enabled:
Yes

Other Settings:
default evmVersion, None license

Contract Source Code (Vyper Json-Input format)

File 1 of 1 : CryptopoolLPOracle.vy
# @version 0.4.3

"""
@title CryptopoolLPOracle
@notice LP oracle for Curve cryptopools
@author Scientia Spectra AG
@license Copyright (c) 2025
"""

interface Cryptopool:
    def lp_price() -> uint256: view
    def virtual_price() -> uint256: view
    def price_scale() -> uint256: view

interface PriceOracle:
    def price() -> uint256: view
    def price_w() -> uint256: nonpayable


POOL: public(immutable(Cryptopool))
AGG: public(immutable(PriceOracle))


@deploy
def __init__(pool: Cryptopool, agg: PriceOracle):
    """
    @param pool Cryptopool crvUSD/crypto
    @param agg Price aggregator returning price of crvUSD in aggregated USD
    """
    POOL = pool
    AGG = agg


@internal
@view
def lp_price() -> uint256:
    virtual_price: uint256 = staticcall POOL.virtual_price()
    p_scale: uint256 = staticcall POOL.price_scale()
    return 2 * virtual_price * isqrt(p_scale * 10**18) // 10**18


@external
@view
def price() -> uint256:
    return self.lp_price() * staticcall AGG.price() // 10**18


@external
def price_w() -> uint256:
    return self.lp_price() * extcall AGG.price_w() // 10**18

Settings
{
  "outputSelection": {
    "contracts/CryptopoolLPOracle.vy": [
      "evm.bytecode",
      "evm.deployedBytecode",
      "abi"
    ]
  },
  "search_paths": [
    "."
  ]
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_w","outputs":[{"name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"POOL","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AGG","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"pool","type":"address"},{"name":"agg","type":"address"}],"outputs":[],"stateMutability":"nonpayable","type":"constructor"}]

0x6103295150346100515760206103955f395f518060a01c6100515760405260206103b55f395f518060a01c61005157606052604051610309526060516103295261030961005561000039610349610000f35b5f80fd5f3560e01c60026003820660011b61030301601e395f51565b63a035b1fe811861009657346102ff5761003260c0610155565b60c05160206103295f395f5163a035b1fe60e052602060e0600460fc845afa61005d573d5f5f3e3d5ffd5b60203d106102ff5760e09050518082028115838383041417156102ff5790509050670de0b6b3a764000081049050610120526020610120f35b63ceb7f759811861015157346102ff576100b060c0610155565b60c05160206103295f395f5163ceb7f75960e052602060e0600460fc5f855af16100dc573d5f5f3e3d5ffd5b60203d106102ff5760e09050518082028115838383041417156102ff5790509050670de0b6b3a764000081049050610120526020610120f35b637535d246811861015157346102ff57602061030960403960206040f35b63858051e2811861015157346102ff57602061032960403960206040f35b5f5ffd5b60206103095f395f51630c46b72a606052602060606004607c845afa61017d573d5f5f3e3d5ffd5b60203d106102ff57606090505160405260206103095f395f5163b9e8c9fd608052602060806004609c845afa6101b5573d5f5f3e3d5ffd5b60203d106102ff5760809050516060526040518060011b818160011c186102ff579050606051670de0b6b3a7640000810281670de0b6b3a76400008204186102ff5790508060b5710100000000000000000000000000000000008210610222578160801c91508060401b90505b69010000000000000000008210610240578160401c91508060201b90505b65010000000000821061025a578160201c91508060101b90505b63010000008210610272578160101c91508060081b90505b620100008201810260121c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c905080830480828118828410021890509050905090508082028115838383041417156102ff5790509050670de0b6b3a764000081049050815250565b5f80fd0115013300188558208bdf57f7f35d1080e69abe42d66a369bcf94b3287f87ce7e963692f7e9001f5919030981061840a165767970657283000403003700000000000000000000000083f24023d15d835a213df24fd309c47dab5beb3200000000000000000000000018672b1b0c623a30089a280ed9256379fb0e4e62

Deployed Bytecode

0x5f3560e01c60026003820660011b61030301601e395f51565b63a035b1fe811861009657346102ff5761003260c0610155565b60c05160206103295f395f5163a035b1fe60e052602060e0600460fc845afa61005d573d5f5f3e3d5ffd5b60203d106102ff5760e09050518082028115838383041417156102ff5790509050670de0b6b3a764000081049050610120526020610120f35b63ceb7f759811861015157346102ff576100b060c0610155565b60c05160206103295f395f5163ceb7f75960e052602060e0600460fc5f855af16100dc573d5f5f3e3d5ffd5b60203d106102ff5760e09050518082028115838383041417156102ff5790509050670de0b6b3a764000081049050610120526020610120f35b637535d246811861015157346102ff57602061030960403960206040f35b63858051e2811861015157346102ff57602061032960403960206040f35b5f5ffd5b60206103095f395f51630c46b72a606052602060606004607c845afa61017d573d5f5f3e3d5ffd5b60203d106102ff57606090505160405260206103095f395f5163b9e8c9fd608052602060806004609c845afa6101b5573d5f5f3e3d5ffd5b60203d106102ff5760809050516060526040518060011b818160011c186102ff579050606051670de0b6b3a7640000810281670de0b6b3a76400008204186102ff5790508060b5710100000000000000000000000000000000008210610222578160801c91508060401b90505b69010000000000000000008210610240578160401c91508060201b90505b65010000000000821061025a578160201c91508060101b90505b63010000008210610272578160101c91508060081b90505b620100008201810260121c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c905080830480828118828410021890509050905090508082028115838383041417156102ff5790509050670de0b6b3a764000081049050815250565b5f80fd01150133001800000000000000000000000083f24023d15d835a213df24fd309c47dab5beb3200000000000000000000000018672b1b0c623a30089a280ed9256379fb0e4e62

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.