Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x09534053...6B24EE2e0 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
StableSwapNGAdapter
Compiler Version
vyper:0.3.10
Contract Source Code (Vyper language format)
# pragma version 0.3.10
"""
@title StableSwapNGAdapter
@author Curve.Fi
@notice View contract to use -ng StableSwap in AggregateStablePrice with only old pools support
"""
interface Stableswap:
def price_oracle(i: uint256) -> uint256: view
TARGET: public(immutable(Stableswap))
@external
def __init__(_address: Stableswap):
TARGET = _address
@view
@external
def __default__() -> uint256:
# Needed methods are view and return exactly 1 slot:
# def coins(i: uint256) -> address: view
# def get_virtual_price() -> uint256: view
# def totalSupply() -> uint256: view
return convert(raw_call(TARGET.address, msg.data, max_outsize=32, is_static_call=True), uint256)
@view
@external
def price_oracle() -> uint256:
return TARGET.price_oracle(0)Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_address","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"fallback"},{"stateMutability":"view","type":"function","name":"price_oracle","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"TARGET","inputs":[],"outputs":[{"name":"","type":"address"}]}]Contract Creation Code
0x60e65150346100325760206101305f395f518060a01c6100325760405260405160e6526100e66100366000396101066000f35b5f80fd5f3560e01c60026001821660011b6100e201601e395f51565b63cc1f2afa811861008657346100de5760206100e660403960206040f3610086565b6386fc88d3811861008657346100de57602060206100e65f395f5163687276536040525f606052602060406024605c845afa610078573d5f5f3e3d5ffd5b60203d106100de5760409050f35b346100de5760206100e65f395f515a596020606036365f8537838686fa9050905090506100b5573d5f5f3e3d5ffd5b3d602081183d602010021860405260406020810151815160200360031b1c905060805260206080f35b5f80fd0018003a8418e681041820a16576797065728300030a001400000000000000000000000013e12bb0e6a2f1a3d6901a59a9d585e89a6243e1
Deployed Bytecode
0x5f3560e01c60026001821660011b6100e201601e395f51565b63cc1f2afa811861008657346100de5760206100e660403960206040f3610086565b6386fc88d3811861008657346100de57602060206100e65f395f5163687276536040525f606052602060406024605c845afa610078573d5f5f3e3d5ffd5b60203d106100de5760409050f35b346100de5760206100e65f395f515a596020606036365f8537838686fa9050905090506100b5573d5f5f3e3d5ffd5b3d602081183d602010021860405260406020810151815160200360031b1c905060805260206080f35b5f80fd0018003a00000000000000000000000013e12bb0e6a2f1a3d6901a59a9d585e89a6243e1
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.