Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : StableSwapNGAdapter
# 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)
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.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.