Source Code
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SpeedTokenPriceFeed
Compiler Version
v0.8.30+commit.73712a01
Contract Source Code (Solidity)
/**
*Submitted for verification at optimistic.etherscan.io on 2025-06-16
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Interfaces
interface IUniswapV3Pool {
function token0() external view returns (address);
function token1() external view returns (address);
function slot0() external view returns (
uint160 sqrtPriceX96,
int24 tick,
uint16 observationIndex,
uint16 cardinality,
uint16 cardinalityNext,
uint8 feeProtocol,
bool unlocked
);
}
interface IERC20 {
function decimals() external view returns (uint8);
}
interface AggregatorV3Interface {
function latestRoundData() external view returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
}
interface IPriceFeed {
// Returns the latest price of Speed token in ETH (18 decimal precision)
function getLatestSpeedEthPrice() external view returns (uint256);
// Returns the latest price of Speed token in USD (18 decimal precision)
function getLatestSpeedUsdPrice() external view returns (uint256);
}
contract SpeedTokenPriceFeed is IPriceFeed {
address public immutable speedWethPool;
address public immutable weth;
address public immutable chainlinkEthUsdFeed;
address public immutable speedToken;
constructor(
address _speedWethPool,
address _weth,
address _chainlinkEthUsdFeed,
address _speedToken
) {
speedWethPool = _speedWethPool;
weth = _weth;
chainlinkEthUsdFeed = _chainlinkEthUsdFeed;
speedToken = _speedToken;
}
/**
* @notice Returns the price of SPEED token in ETH, scaled to 18 decimals
* @return price The price in ETH as a uint256 (e.g., 0.001 ETH = 1 * 10^15)
*/
function getLatestSpeedEthPrice() external view override returns (uint256) {
// Access Uniswap V3 pool data
IUniswapV3Pool v3Pool = IUniswapV3Pool(speedWethPool);
address token0 = v3Pool.token0();
address token1 = v3Pool.token1();
(uint160 sqrtPriceX96, , , , , , ) = v3Pool.slot0();
// Verify that the pool contains SPEED and WETH
require(
(token0 == speedToken && token1 == weth) ||
(token0 == weth && token1 == speedToken),
"Pool doesn't contain SPEED and WETH"
);
// Get SPEED token decimals
uint8 decimals = IERC20(speedToken).decimals();
// Calculate SPEED price in WETH with overflow-safe steps
uint256 priceInWeth; // Price in WETH with 18 decimals
uint256 sqrtPriceX96Squared = uint256(sqrtPriceX96) * uint256(sqrtPriceX96);
if (weth == token1) {
// WETH is token1, SPEED is token0
// Price in WETH = (sqrtPriceX96^2 * 10^decimals) / 2^192
priceInWeth = (sqrtPriceX96Squared * (10 ** decimals)) / (1 << 192);
} else {
// WETH is token0, SPEED is token1
// Price in WETH = (10^decimals * 2^192) / sqrtPriceX96^2
priceInWeth = ((10 ** decimals) * (1 << 192)) / sqrtPriceX96Squared;
}
return priceInWeth;
}
/**
* @notice Returns the price of SPEED token in USD, scaled to 18 decimals
* @return price The price in USD as a uint256 (e.g., 2 USD = 2 * 10^18)
*/
function getLatestSpeedUsdPrice() external view override returns (uint256) {
// Get SPEED/ETH price
uint256 priceInWeth = this.getLatestSpeedEthPrice();
// Fetch ETH/USD price from Chainlink (8 decimals)
AggregatorV3Interface priceFeed = AggregatorV3Interface(chainlinkEthUsdFeed);
(, int256 ethUsdInt, , , ) = priceFeed.latestRoundData();
require(ethUsdInt > 0, "Invalid Chainlink price");
uint256 ethUsd = uint256(ethUsdInt); // e.g., 2000 * 10^8 = 2000 USD
// Convert to USD: priceInWeth (18 decimals) * ethUsd (8 decimals) / 10^8
uint256 priceInUsd = (priceInWeth * ethUsd) / 1e8;
return priceInUsd;
}
/**
* @notice Get ETH price in USD with 18 decimal precision
*/
function getEthUsdPrice() external view returns (uint256) {
AggregatorV3Interface priceFeed = AggregatorV3Interface(chainlinkEthUsdFeed);
(, int256 ethUsdInt, , , ) = priceFeed.latestRoundData();
require(ethUsdInt > 0, "Invalid Chainlink price");
// Convert from Chainlink's 8 decimals to 18 decimals
return uint256(ethUsdInt) * 1e10;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_speedWethPool","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_chainlinkEthUsdFeed","type":"address"},{"internalType":"address","name":"_speedToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"chainlinkEthUsdFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestSpeedEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestSpeedUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"speedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"speedWethPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
610100604052348015610010575f5ffd5b506040516112b03803806112b083398181016040528101906100329190610169565b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1681525050505050506101cd565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101388261010f565b9050919050565b6101488161012e565b8114610152575f5ffd5b50565b5f815190506101638161013f565b92915050565b5f5f5f5f608085870312156101815761018061010b565b5b5f61018e87828801610155565b945050602061019f87828801610155565b93505060406101b087828801610155565b92505060606101c187828801610155565b91505092959194509250565b60805160a05160c05160e05161107161023f5f395f8181610153015281816104b2015281816105b4015261064501525f818161019b0152818161023101526107f401525f8181610177015281816105080152818161055e015261072701525f818161033901526108e501526110715ff3fe608060405234801561000f575f5ffd5b506004361061007b575f3560e01c80637e82ab3e116100595780637e82ab3e146100d95780638f3bd9e8146100f7578063a0a8045e14610115578063c45cfc57146101335761007b565b80632b6eafc81461007f5780633fc8cef31461009d5780637c304a83146100bb575b5f5ffd5b610087610151565b6040516100949190610946565b60405180910390f35b6100a5610175565b6040516100b29190610946565b60405180910390f35b6100c3610199565b6040516100d09190610946565b60405180910390f35b6100e16101bd565b6040516100ee9190610977565b60405180910390f35b6100ff610335565b60405161010c9190610977565b60405180910390f35b61011d6107f0565b60405161012a9190610977565b60405180910390f35b61013b6108e3565b6040516101489190610946565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f5f3073ffffffffffffffffffffffffffffffffffffffff16638f3bd9e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610208573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061022c91906109be565b90505f7f000000000000000000000000000000000000000000000000000000000000000090505f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561029c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102c09190610a5b565b5050509150505f8113610308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ff90610b2c565b60405180910390fd5b5f8190505f6305f5e100828661031e9190610b77565b6103289190610be5565b9050809550505050505090565b5f5f7f000000000000000000000000000000000000000000000000000000000000000090505f8173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103c89190610c3f565b90505f8273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610414573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104389190610c3f565b90505f8373ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610484573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104a89190610d6c565b50505050505090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561055657507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061060357507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561060257507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b5b610642576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063990610e79565b60405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d09190610e97565b90505f5f8373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1661070c9190610b77565b90508473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16036107a457780100000000000000000000000000000000000000000000000083600a6107889190610ff1565b826107939190610b77565b61079d9190610be5565b91506107e3565b80780100000000000000000000000000000000000000000000000084600a6107cc9190610ff1565b6107d69190610b77565b6107e09190610be5565b91505b8197505050505050505090565b5f5f7f000000000000000000000000000000000000000000000000000000000000000090505f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561085f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108839190610a5b565b5050509150505f81136108cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c290610b2c565b60405180910390fd5b6402540be400816108dc9190610b77565b9250505090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61093082610907565b9050919050565b61094081610926565b82525050565b5f6020820190506109595f830184610937565b92915050565b5f819050919050565b6109718161095f565b82525050565b5f60208201905061098a5f830184610968565b92915050565b5f5ffd5b61099d8161095f565b81146109a7575f5ffd5b50565b5f815190506109b881610994565b92915050565b5f602082840312156109d3576109d2610990565b5b5f6109e0848285016109aa565b91505092915050565b5f69ffffffffffffffffffff82169050919050565b610a07816109e9565b8114610a11575f5ffd5b50565b5f81519050610a22816109fe565b92915050565b5f819050919050565b610a3a81610a28565b8114610a44575f5ffd5b50565b5f81519050610a5581610a31565b92915050565b5f5f5f5f5f60a08688031215610a7457610a73610990565b5b5f610a8188828901610a14565b9550506020610a9288828901610a47565b9450506040610aa3888289016109aa565b9350506060610ab4888289016109aa565b9250506080610ac588828901610a14565b9150509295509295909350565b5f82825260208201905092915050565b7f496e76616c696420436861696e6c696e6b2070726963650000000000000000005f82015250565b5f610b16601783610ad2565b9150610b2182610ae2565b602082019050919050565b5f6020820190508181035f830152610b4381610b0a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610b818261095f565b9150610b8c8361095f565b9250828202610b9a8161095f565b91508282048414831517610bb157610bb0610b4a565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f610bef8261095f565b9150610bfa8361095f565b925082610c0a57610c09610bb8565b5b828204905092915050565b610c1e81610926565b8114610c28575f5ffd5b50565b5f81519050610c3981610c15565b92915050565b5f60208284031215610c5457610c53610990565b5b5f610c6184828501610c2b565b91505092915050565b610c7381610907565b8114610c7d575f5ffd5b50565b5f81519050610c8e81610c6a565b92915050565b5f8160020b9050919050565b610ca981610c94565b8114610cb3575f5ffd5b50565b5f81519050610cc481610ca0565b92915050565b5f61ffff82169050919050565b610ce081610cca565b8114610cea575f5ffd5b50565b5f81519050610cfb81610cd7565b92915050565b5f60ff82169050919050565b610d1681610d01565b8114610d20575f5ffd5b50565b5f81519050610d3181610d0d565b92915050565b5f8115159050919050565b610d4b81610d37565b8114610d55575f5ffd5b50565b5f81519050610d6681610d42565b92915050565b5f5f5f5f5f5f5f60e0888a031215610d8757610d86610990565b5b5f610d948a828b01610c80565b9750506020610da58a828b01610cb6565b9650506040610db68a828b01610ced565b9550506060610dc78a828b01610ced565b9450506080610dd88a828b01610ced565b93505060a0610de98a828b01610d23565b92505060c0610dfa8a828b01610d58565b91505092959891949750929550565b7f506f6f6c20646f65736e277420636f6e7461696e20535045454420616e6420575f8201527f4554480000000000000000000000000000000000000000000000000000000000602082015250565b5f610e63602383610ad2565b9150610e6e82610e09565b604082019050919050565b5f6020820190508181035f830152610e9081610e57565b9050919050565b5f60208284031215610eac57610eab610990565b5b5f610eb984828501610d23565b91505092915050565b5f8160011c9050919050565b5f5f8291508390505b6001851115610f1757808604811115610ef357610ef2610b4a565b5b6001851615610f025780820291505b8081029050610f1085610ec2565b9450610ed7565b94509492505050565b5f82610f2f5760019050610fea565b81610f3c575f9050610fea565b8160018114610f525760028114610f5c57610f8b565b6001915050610fea565b60ff841115610f6e57610f6d610b4a565b5b8360020a915084821115610f8557610f84610b4a565b5b50610fea565b5060208310610133831016604e8410600b8410161715610fc05782820a905083811115610fbb57610fba610b4a565b5b610fea565b610fcd8484846001610ece565b92509050818404811115610fe457610fe3610b4a565b5b81810290505b9392505050565b5f610ffb8261095f565b915061100683610d01565b92506110337fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f20565b90509291505056fea26469706673582212204efa0d86e82b936e2f1c930268e728b0fbc0f7ebee55f927630d90107e24134964736f6c634300081e003300000000000000000000000088edb5bffabcb42caaedc35787667672f37897c5000000000000000000000000420000000000000000000000000000000000000600000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c5000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d5922
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061007b575f3560e01c80637e82ab3e116100595780637e82ab3e146100d95780638f3bd9e8146100f7578063a0a8045e14610115578063c45cfc57146101335761007b565b80632b6eafc81461007f5780633fc8cef31461009d5780637c304a83146100bb575b5f5ffd5b610087610151565b6040516100949190610946565b60405180910390f35b6100a5610175565b6040516100b29190610946565b60405180910390f35b6100c3610199565b6040516100d09190610946565b60405180910390f35b6100e16101bd565b6040516100ee9190610977565b60405180910390f35b6100ff610335565b60405161010c9190610977565b60405180910390f35b61011d6107f0565b60405161012a9190610977565b60405180910390f35b61013b6108e3565b6040516101489190610946565b60405180910390f35b7f000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d592281565b7f000000000000000000000000420000000000000000000000000000000000000681565b7f00000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c581565b5f5f3073ffffffffffffffffffffffffffffffffffffffff16638f3bd9e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610208573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061022c91906109be565b90505f7f00000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c590505f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561029c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102c09190610a5b565b5050509150505f8113610308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ff90610b2c565b60405180910390fd5b5f8190505f6305f5e100828661031e9190610b77565b6103289190610be5565b9050809550505050505090565b5f5f7f00000000000000000000000088edb5bffabcb42caaedc35787667672f37897c590505f8173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103c89190610c3f565b90505f8273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610414573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104389190610c3f565b90505f8373ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610484573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104a89190610d6c565b50505050505090507f000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d592273ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561055657507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061060357507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561060257507f000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d592273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b5b610642576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063990610e79565b60405180910390fd5b5f7f000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d592273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d09190610e97565b90505f5f8373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1661070c9190610b77565b90508473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff16036107a457780100000000000000000000000000000000000000000000000083600a6107889190610ff1565b826107939190610b77565b61079d9190610be5565b91506107e3565b80780100000000000000000000000000000000000000000000000084600a6107cc9190610ff1565b6107d69190610b77565b6107e09190610be5565b91505b8197505050505050505090565b5f5f7f00000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c590505f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561085f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108839190610a5b565b5050509150505f81136108cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c290610b2c565b60405180910390fd5b6402540be400816108dc9190610b77565b9250505090565b7f00000000000000000000000088edb5bffabcb42caaedc35787667672f37897c581565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61093082610907565b9050919050565b61094081610926565b82525050565b5f6020820190506109595f830184610937565b92915050565b5f819050919050565b6109718161095f565b82525050565b5f60208201905061098a5f830184610968565b92915050565b5f5ffd5b61099d8161095f565b81146109a7575f5ffd5b50565b5f815190506109b881610994565b92915050565b5f602082840312156109d3576109d2610990565b5b5f6109e0848285016109aa565b91505092915050565b5f69ffffffffffffffffffff82169050919050565b610a07816109e9565b8114610a11575f5ffd5b50565b5f81519050610a22816109fe565b92915050565b5f819050919050565b610a3a81610a28565b8114610a44575f5ffd5b50565b5f81519050610a5581610a31565b92915050565b5f5f5f5f5f60a08688031215610a7457610a73610990565b5b5f610a8188828901610a14565b9550506020610a9288828901610a47565b9450506040610aa3888289016109aa565b9350506060610ab4888289016109aa565b9250506080610ac588828901610a14565b9150509295509295909350565b5f82825260208201905092915050565b7f496e76616c696420436861696e6c696e6b2070726963650000000000000000005f82015250565b5f610b16601783610ad2565b9150610b2182610ae2565b602082019050919050565b5f6020820190508181035f830152610b4381610b0a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610b818261095f565b9150610b8c8361095f565b9250828202610b9a8161095f565b91508282048414831517610bb157610bb0610b4a565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f610bef8261095f565b9150610bfa8361095f565b925082610c0a57610c09610bb8565b5b828204905092915050565b610c1e81610926565b8114610c28575f5ffd5b50565b5f81519050610c3981610c15565b92915050565b5f60208284031215610c5457610c53610990565b5b5f610c6184828501610c2b565b91505092915050565b610c7381610907565b8114610c7d575f5ffd5b50565b5f81519050610c8e81610c6a565b92915050565b5f8160020b9050919050565b610ca981610c94565b8114610cb3575f5ffd5b50565b5f81519050610cc481610ca0565b92915050565b5f61ffff82169050919050565b610ce081610cca565b8114610cea575f5ffd5b50565b5f81519050610cfb81610cd7565b92915050565b5f60ff82169050919050565b610d1681610d01565b8114610d20575f5ffd5b50565b5f81519050610d3181610d0d565b92915050565b5f8115159050919050565b610d4b81610d37565b8114610d55575f5ffd5b50565b5f81519050610d6681610d42565b92915050565b5f5f5f5f5f5f5f60e0888a031215610d8757610d86610990565b5b5f610d948a828b01610c80565b9750506020610da58a828b01610cb6565b9650506040610db68a828b01610ced565b9550506060610dc78a828b01610ced565b9450506080610dd88a828b01610ced565b93505060a0610de98a828b01610d23565b92505060c0610dfa8a828b01610d58565b91505092959891949750929550565b7f506f6f6c20646f65736e277420636f6e7461696e20535045454420616e6420575f8201527f4554480000000000000000000000000000000000000000000000000000000000602082015250565b5f610e63602383610ad2565b9150610e6e82610e09565b604082019050919050565b5f6020820190508181035f830152610e9081610e57565b9050919050565b5f60208284031215610eac57610eab610990565b5b5f610eb984828501610d23565b91505092915050565b5f8160011c9050919050565b5f5f8291508390505b6001851115610f1757808604811115610ef357610ef2610b4a565b5b6001851615610f025780820291505b8081029050610f1085610ec2565b9450610ed7565b94509492505050565b5f82610f2f5760019050610fea565b81610f3c575f9050610fea565b8160018114610f525760028114610f5c57610f8b565b6001915050610fea565b60ff841115610f6e57610f6d610b4a565b5b8360020a915084821115610f8557610f84610b4a565b5b50610fea565b5060208310610133831016604e8410600b8410161715610fc05782820a905083811115610fbb57610fba610b4a565b5b610fea565b610fcd8484846001610ece565b92509050818404811115610fe457610fe3610b4a565b5b81810290505b9392505050565b5f610ffb8261095f565b915061100683610d01565b92506110337fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f20565b90509291505056fea26469706673582212204efa0d86e82b936e2f1c930268e728b0fbc0f7ebee55f927630d90107e24134964736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000088edb5bffabcb42caaedc35787667672f37897c5000000000000000000000000420000000000000000000000000000000000000600000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c5000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d5922
-----Decoded View---------------
Arg [0] : _speedWethPool (address): 0x88edB5BfFAbCb42CAaedc35787667672f37897c5
Arg [1] : _weth (address): 0x4200000000000000000000000000000000000006
Arg [2] : _chainlinkEthUsdFeed (address): 0x13e3Ee699D1909E989722E753853AE30b17e08c5
Arg [3] : _speedToken (address): 0xB01CF1bE9568f09449382a47Cd5bF58e2A9D5922
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000088edb5bffabcb42caaedc35787667672f37897c5
Arg [1] : 0000000000000000000000004200000000000000000000000000000000000006
Arg [2] : 00000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c5
Arg [3] : 000000000000000000000000b01cf1be9568f09449382a47cd5bf58e2a9d5922
Deployed Bytecode Sourcemap
1130:3568:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1312:35;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1225:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1261:44;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3476:730;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1850:1439;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4299:396;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1180:38;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1312:35;;;:::o;1225:29::-;;;:::o;1261:44::-;;;:::o;3476:730::-;3542:7;3594:19;3616:4;:27;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3594:51;;3726:31;3782:19;3726:76;;3816:16;3842:9;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3813:56;;;;;;3900:1;3888:9;:13;3880:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;3940:14;3965:9;3940:35;;4111:18;4157:3;4147:6;4133:11;:20;;;;:::i;:::-;4132:28;;;;:::i;:::-;4111:49;;4188:10;4181:17;;;;;;;3476:730;:::o;1850:1439::-;1916:7;1976:21;2015:13;1976:53;;2040:14;2057:6;:13;;;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2040:32;;2083:14;2100:6;:13;;;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2083:32;;2127:20;2163:6;:12;;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2126:51;;;;;;;;2288:10;2278:20;;:6;:20;;;:38;;;;;2312:4;2302:14;;:6;:14;;;2278:38;2277:98;;;;2346:4;2336:14;;:6;:14;;;:38;;;;;2364:10;2354:20;;:6;:20;;;2336:38;2277:98;2255:184;;;;;;;;;;;;:::i;:::-;;;;;;;;;2497:14;2521:10;2514:27;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2497:46;;2631:19;2695:27;2757:12;2749:21;;2733:12;2725:21;;:45;;;;:::i;:::-;2695:75;;2803:6;2795:14;;:4;:14;;;2791:452;;3003:8;2989;2983:2;:14;;;;:::i;:::-;2960:19;:38;;;;:::i;:::-;2959:53;;;;:::i;:::-;2945:67;;2791:452;;;3212:19;3199:8;3186;3180:2;:14;;;;:::i;:::-;3179:29;;;;:::i;:::-;3178:53;;;;:::i;:::-;3164:67;;2791:452;3270:11;3263:18;;;;;;;;;1850:1439;:::o;4299:396::-;4348:7;4368:31;4424:19;4368:76;;4458:16;4484:9;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4455:56;;;;;;4542:1;4530:9;:13;4522:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;4683:4;4670:9;4662:25;;;;:::i;:::-;4655:32;;;;4299:396;:::o;1180:38::-;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;593:77::-;630:7;659:5;648:16;;593:77;;;:::o;676:118::-;763:24;781:5;763:24;:::i;:::-;758:3;751:37;676:118;;:::o;800:222::-;893:4;931:2;920:9;916:18;908:26;;944:71;1012:1;1001:9;997:17;988:6;944:71;:::i;:::-;800:222;;;;:::o;1109:117::-;1218:1;1215;1208:12;1355:122;1428:24;1446:5;1428:24;:::i;:::-;1421:5;1418:35;1408:63;;1467:1;1464;1457:12;1408:63;1355:122;:::o;1483:143::-;1540:5;1571:6;1565:13;1556:22;;1587:33;1614:5;1587:33;:::i;:::-;1483:143;;;;:::o;1632:351::-;1702:6;1751:2;1739:9;1730:7;1726:23;1722:32;1719:119;;;1757:79;;:::i;:::-;1719:119;1877:1;1902:64;1958:7;1949:6;1938:9;1934:22;1902:64;:::i;:::-;1892:74;;1848:128;1632:351;;;;:::o;1989:105::-;2025:7;2065:22;2058:5;2054:34;2043:45;;1989:105;;;:::o;2100:120::-;2172:23;2189:5;2172:23;:::i;:::-;2165:5;2162:34;2152:62;;2210:1;2207;2200:12;2152:62;2100:120;:::o;2226:141::-;2282:5;2313:6;2307:13;2298:22;;2329:32;2355:5;2329:32;:::i;:::-;2226:141;;;;:::o;2373:76::-;2409:7;2438:5;2427:16;;2373:76;;;:::o;2455:120::-;2527:23;2544:5;2527:23;:::i;:::-;2520:5;2517:34;2507:62;;2565:1;2562;2555:12;2507:62;2455:120;:::o;2581:141::-;2637:5;2668:6;2662:13;2653:22;;2684:32;2710:5;2684:32;:::i;:::-;2581:141;;;;:::o;2728:971::-;2831:6;2839;2847;2855;2863;2912:3;2900:9;2891:7;2887:23;2883:33;2880:120;;;2919:79;;:::i;:::-;2880:120;3039:1;3064:63;3119:7;3110:6;3099:9;3095:22;3064:63;:::i;:::-;3054:73;;3010:127;3176:2;3202:63;3257:7;3248:6;3237:9;3233:22;3202:63;:::i;:::-;3192:73;;3147:128;3314:2;3340:64;3396:7;3387:6;3376:9;3372:22;3340:64;:::i;:::-;3330:74;;3285:129;3453:2;3479:64;3535:7;3526:6;3515:9;3511:22;3479:64;:::i;:::-;3469:74;;3424:129;3592:3;3619:63;3674:7;3665:6;3654:9;3650:22;3619:63;:::i;:::-;3609:73;;3563:129;2728:971;;;;;;;;:::o;3705:169::-;3789:11;3823:6;3818:3;3811:19;3863:4;3858:3;3854:14;3839:29;;3705:169;;;;:::o;3880:173::-;4020:25;4016:1;4008:6;4004:14;3997:49;3880:173;:::o;4059:366::-;4201:3;4222:67;4286:2;4281:3;4222:67;:::i;:::-;4215:74;;4298:93;4387:3;4298:93;:::i;:::-;4416:2;4411:3;4407:12;4400:19;;4059:366;;;:::o;4431:419::-;4597:4;4635:2;4624:9;4620:18;4612:26;;4684:9;4678:4;4674:20;4670:1;4659:9;4655:17;4648:47;4712:131;4838:4;4712:131;:::i;:::-;4704:139;;4431:419;;;:::o;4856:180::-;4904:77;4901:1;4894:88;5001:4;4998:1;4991:15;5025:4;5022:1;5015:15;5042:410;5082:7;5105:20;5123:1;5105:20;:::i;:::-;5100:25;;5139:20;5157:1;5139:20;:::i;:::-;5134:25;;5194:1;5191;5187:9;5216:30;5234:11;5216:30;:::i;:::-;5205:41;;5395:1;5386:7;5382:15;5379:1;5376:22;5356:1;5349:9;5329:83;5306:139;;5425:18;;:::i;:::-;5306:139;5090:362;5042:410;;;;:::o;5458:180::-;5506:77;5503:1;5496:88;5603:4;5600:1;5593:15;5627:4;5624:1;5617:15;5644:185;5684:1;5701:20;5719:1;5701:20;:::i;:::-;5696:25;;5735:20;5753:1;5735:20;:::i;:::-;5730:25;;5774:1;5764:35;;5779:18;;:::i;:::-;5764:35;5821:1;5818;5814:9;5809:14;;5644:185;;;;:::o;5835:122::-;5908:24;5926:5;5908:24;:::i;:::-;5901:5;5898:35;5888:63;;5947:1;5944;5937:12;5888:63;5835:122;:::o;5963:143::-;6020:5;6051:6;6045:13;6036:22;;6067:33;6094:5;6067:33;:::i;:::-;5963:143;;;;:::o;6112:351::-;6182:6;6231:2;6219:9;6210:7;6206:23;6202:32;6199:119;;;6237:79;;:::i;:::-;6199:119;6357:1;6382:64;6438:7;6429:6;6418:9;6414:22;6382:64;:::i;:::-;6372:74;;6328:128;6112:351;;;;:::o;6469:122::-;6542:24;6560:5;6542:24;:::i;:::-;6535:5;6532:35;6522:63;;6581:1;6578;6571:12;6522:63;6469:122;:::o;6597:143::-;6654:5;6685:6;6679:13;6670:22;;6701:33;6728:5;6701:33;:::i;:::-;6597:143;;;;:::o;6746:90::-;6781:7;6824:5;6821:1;6810:20;6799:31;;6746:90;;;:::o;6842:118::-;6913:22;6929:5;6913:22;:::i;:::-;6906:5;6903:33;6893:61;;6950:1;6947;6940:12;6893:61;6842:118;:::o;6966:139::-;7021:5;7052:6;7046:13;7037:22;;7068:31;7093:5;7068:31;:::i;:::-;6966:139;;;;:::o;7111:89::-;7147:7;7187:6;7180:5;7176:18;7165:29;;7111:89;;;:::o;7206:120::-;7278:23;7295:5;7278:23;:::i;:::-;7271:5;7268:34;7258:62;;7316:1;7313;7306:12;7258:62;7206:120;:::o;7332:141::-;7388:5;7419:6;7413:13;7404:22;;7435:32;7461:5;7435:32;:::i;:::-;7332:141;;;;:::o;7479:86::-;7514:7;7554:4;7547:5;7543:16;7532:27;;7479:86;;;:::o;7571:118::-;7642:22;7658:5;7642:22;:::i;:::-;7635:5;7632:33;7622:61;;7679:1;7676;7669:12;7622:61;7571:118;:::o;7695:139::-;7750:5;7781:6;7775:13;7766:22;;7797:31;7822:5;7797:31;:::i;:::-;7695:139;;;;:::o;7840:90::-;7874:7;7917:5;7910:13;7903:21;7892:32;;7840:90;;;:::o;7936:116::-;8006:21;8021:5;8006:21;:::i;:::-;7999:5;7996:32;7986:60;;8042:1;8039;8032:12;7986:60;7936:116;:::o;8058:137::-;8112:5;8143:6;8137:13;8128:22;;8159:30;8183:5;8159:30;:::i;:::-;8058:137;;;;:::o;8201:1271::-;8315:6;8323;8331;8339;8347;8355;8363;8412:3;8400:9;8391:7;8387:23;8383:33;8380:120;;;8419:79;;:::i;:::-;8380:120;8539:1;8564:64;8620:7;8611:6;8600:9;8596:22;8564:64;:::i;:::-;8554:74;;8510:128;8677:2;8703:62;8757:7;8748:6;8737:9;8733:22;8703:62;:::i;:::-;8693:72;;8648:127;8814:2;8840:63;8895:7;8886:6;8875:9;8871:22;8840:63;:::i;:::-;8830:73;;8785:128;8952:2;8978:63;9033:7;9024:6;9013:9;9009:22;8978:63;:::i;:::-;8968:73;;8923:128;9090:3;9117:63;9172:7;9163:6;9152:9;9148:22;9117:63;:::i;:::-;9107:73;;9061:129;9229:3;9256:62;9310:7;9301:6;9290:9;9286:22;9256:62;:::i;:::-;9246:72;;9200:128;9367:3;9394:61;9447:7;9438:6;9427:9;9423:22;9394:61;:::i;:::-;9384:71;;9338:127;8201:1271;;;;;;;;;;:::o;9478:222::-;9618:34;9614:1;9606:6;9602:14;9595:58;9687:5;9682:2;9674:6;9670:15;9663:30;9478:222;:::o;9706:366::-;9848:3;9869:67;9933:2;9928:3;9869:67;:::i;:::-;9862:74;;9945:93;10034:3;9945:93;:::i;:::-;10063:2;10058:3;10054:12;10047:19;;9706:366;;;:::o;10078:419::-;10244:4;10282:2;10271:9;10267:18;10259:26;;10331:9;10325:4;10321:20;10317:1;10306:9;10302:17;10295:47;10359:131;10485:4;10359:131;:::i;:::-;10351:139;;10078:419;;;:::o;10503:347::-;10571:6;10620:2;10608:9;10599:7;10595:23;10591:32;10588:119;;;10626:79;;:::i;:::-;10588:119;10746:1;10771:62;10825:7;10816:6;10805:9;10801:22;10771:62;:::i;:::-;10761:72;;10717:126;10503:347;;;;:::o;10856:102::-;10898:8;10945:5;10942:1;10938:13;10917:34;;10856:102;;;:::o;10964:848::-;11025:5;11032:4;11056:6;11047:15;;11080:5;11071:14;;11094:712;11115:1;11105:8;11102:15;11094:712;;;11210:4;11205:3;11201:14;11195:4;11192:24;11189:50;;;11219:18;;:::i;:::-;11189:50;11269:1;11259:8;11255:16;11252:451;;;11684:4;11677:5;11673:16;11664:25;;11252:451;11734:4;11728;11724:15;11716:23;;11764:32;11787:8;11764:32;:::i;:::-;11752:44;;11094:712;;;10964:848;;;;;;;:::o;11818:1073::-;11872:5;12063:8;12053:40;;12084:1;12075:10;;12086:5;;12053:40;12112:4;12102:36;;12129:1;12120:10;;12131:5;;12102:36;12198:4;12246:1;12241:27;;;;12282:1;12277:191;;;;12191:277;;12241:27;12259:1;12250:10;;12261:5;;;12277:191;12322:3;12312:8;12309:17;12306:43;;;12329:18;;:::i;:::-;12306:43;12378:8;12375:1;12371:16;12362:25;;12413:3;12406:5;12403:14;12400:40;;;12420:18;;:::i;:::-;12400:40;12453:5;;;12191:277;;12577:2;12567:8;12564:16;12558:3;12552:4;12549:13;12545:36;12527:2;12517:8;12514:16;12509:2;12503:4;12500:12;12496:35;12480:111;12477:246;;;12633:8;12627:4;12623:19;12614:28;;12668:3;12661:5;12658:14;12655:40;;;12675:18;;:::i;:::-;12655:40;12708:5;;12477:246;12748:42;12786:3;12776:8;12770:4;12767:1;12748:42;:::i;:::-;12733:57;;;;12822:4;12817:3;12813:14;12806:5;12803:25;12800:51;;;12831:18;;:::i;:::-;12800:51;12880:4;12873:5;12869:16;12860:25;;11818:1073;;;;;;:::o;12897:281::-;12955:5;12979:23;12997:4;12979:23;:::i;:::-;12971:31;;13023:25;13039:8;13023:25;:::i;:::-;13011:37;;13067:104;13104:66;13094:8;13088:4;13067:104;:::i;:::-;13058:113;;12897:281;;;;:::o
Swarm Source
ipfs://4efa0d86e82b936e2f1c930268e728b0fbc0f7ebee55f927630d90107e241349
Loading...
Loading
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.