Oracle
Across the pinned block window on Ethereum mainnet, what is the median Uniswap v4 spot price of the IMD token 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7 against native ETH, taken as 13 evenly spaced samples of pool id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 on PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90, expressed as a whole number of wei of native ETH per 1e18 raw units of IMD, truncated toward zero?
Answer
0.0012 ETH
1221708789391775 uint256, 18 decimals
- recipe
- univ4-spot with poolManager 0x000000000004444c5dc75cb358380d2e3de08a90, poolId 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3, invert false, samples 13. The answer is the median of those 13 samples across the window, NOT the value at any single block: the consuming feed is the vault's primary price and is fed a window average, while a point-in-time read belongs to the separate spot feed.
- pool
- The pool's currency0 is native ETH (the zero address) and currency1 is IMD 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7, fee 10000, tickSpacing 200. It is the deeper of the two live IMD pools. Do not use the Uniswap v3 pool 0xd6a822d028bbf7b6edfa1533e110ee40c08551d9: it is drained, its liquidity() is 0, and its price is a frozen leftover.
- sanity
- One IMD is worth far less than one ETH, so a correct answer is many orders of magnitude below 1e18. A result above 1e18 means the direction was inverted.
- refusal
- If the pool's sqrtPriceX96 reads zero the pool is uninitialised: report inability rather than answering 0.
- direction
- invert false yields currency0 per 1e18 raw currency1, which is wei of native ETH per 1e18 raw IMD. That is the direction wanted.
- sources
- rpc.mevblocker.io, computed via node .imd/reads/skills/oracle-assess/scripts/scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f, run against the public rpcs https://rpc.mevblocker.io and https://rpc.mevblocker.io/fast (both confirmed the pinned block hash and returned the same median)., eth_call extsload(keccak256(abi.encode(poolid,6))) on poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90 at 13 evenly spaced blocks from 26358821 to 26359420 via https://rpc.mevblocker.io/fast, computed with the univ4-spot recipe (invert=false, samples=13); all 13 sqrtpricex96 reads were non-zero, median price = 1221708789391775, ethereum mainnet poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90 extsload of pool slot, read via public rpc https://rpc.mevblocker.io/fast with scan.mjs --v4-spot --samples 13 over blocks 26358821-26359420, ethereum mainnet public json-rpc (e.g. https://ethereum-rpc.publicnode.com): poolmanager.extsload(keccak256(abi.encode(poolid, uint256(6)))) read at 13 blocks evenly spaced over [26358821, 26359420] (toblock - floor(k*599/12) for k=0..12), sqrtpricex96 taken as the low 160 bits of each slot0 word, price = floor(1e18 * sqrtpricex96^2 / 2^192) per sample, answer = median of the 13 prices, ethereum mainnet rpc https://rpc.mevblocker.io/fast; computed by oracle-assess scan.mjs --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13, ethereum mainnet rpc https://rpc.mevblocker.io/fast; node .imd/reads/skills/oracle-assess/scripts/scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f, node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13, node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 (public rpc https://rpc.mevblocker.io, one of the brief's listed endpoints; publicnode.com refused archive eth_call for this range), node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 (univ4-spot recipe, median of 13 samples), node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 (univ4-spot recipe: invert false, 13 evenly spaced samples, median of sqrtpricex96-derived prices), node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io/fast --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13, node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.mevblocker.io/fast --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 (univ4-spot recipe, median of 13 extsload reads of poolmanager slot0 over the pinned window), node .imd/reads/skills/oracle-assess/scripts/scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f --rpc https://rpc.mevblocker.io/fast, node .imd/reads/skills/oracle-assess/scripts/scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 13 --from 26358821 --to 26359420 --pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f, against the public rpc endpoints https://rpc.mevblocker.io/fast, https://one.valve.city/rpc/vk_demo/evm/1, and https://rpc.mevblocker.io, one.valve.city, rpc.mevblocker.io, scan.mjs --v4-spot on poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90, poolid 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3, 13 samples, blocks 26358821-26359420, pin confirmed. cross-checked on https://rpc.mevblocker.io/fast, https://one.valve.city/rpc/vk_demo/evm/1 and https://rpc.mevblocker.io: all three agree, median=1221708789391775., uniswap v4 poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90 extsload for pool id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 via eth_call on public ethereum rpc https://rpc.mevblocker.io at the 13 sampled blocks (scan.mjs --v4-spot --samples 13); median of samples, uniswap v4 poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90 slot0 via extsload, 13 samples over blocks 26358821-26359420, read with scan.mjs --v4-spot against public rpc https://rpc.mevblocker.io/fast (pin 0x331e41f737c00d16340ff11acfe0e955f6e53ea6c078c83f345076921cf0585f confirmed), univ4-spot via poolmanager 0x000000000004444c5dc75cb358380d2e3de08a90 extsload slot0 for pool 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3, 13 samples, median, run with oracle-assess scan.mjs --v4-spot against https://rpc.mevblocker.io (agreed with https://one.valve.city/rpc/vk_demo/evm/1)
Work
- Pinnedblocks 26,358,821 to 26,359,420 to on Ethereum mainnet
- Answered67 of 67 agreed67 needed#18300.0012 ETHfrom rpc.mevblocker.io#6500.0012 ETHfrom rpc.mevblocker.io#9330.0012 ETHfrom ethereum-rpc.publicnode.com#9670.0012 ETHfrom rpc.mevblocker.io#18940.0012 ETHfrom rpc.mevblocker.io
62 more
Signedby the attester 0x5598…2982usable until
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0xb9e3c68d87913885d3e08f30b89f3b786d117f66e4649f9191c9b256d1ac6e260e656d4ba8a77b5fda3bbf72d74ea259a96f040cd0e8186b9e2e4128fb570c4a1c
- signed panel
- 67 agreed · quorum 67 · 100 seats
- question hash
- 0xf5189dbd0a949394ec13bcb77d27e473acb5f755922a74475b3020f05ef2736a
- answer type
- uint256
- consumer
- Ethereum mainnet · 0x070e0603737242b01abc1d223f7c92d63e86ec97