Query editor
with redemption_calls as (selectcall_tx_hash, call_tx_from, call_tx_to, call_block_time, call_block_number, _boldAmount/1e18 as boldAmount, _maxFeePercentage/1e18 * 100 as maxFeePercentage, _maxIterationsPerCollateralfrom liquity_v2_ethereum.collateralregistry_call_redeemcollateralwhere call_success = true),redemption_events as (SELECTasset, evt_tx_hash, evt_index, _ETHFee / 1e18 as ethFee, _ETHSent / 1e18 as ethSent, _actualBoldAmount / 1e18 as actualBoldAmount, _attemptedBoldAmount / 1e18 as attemptedBoldAmount, _price / 1e18 as price, _redemptionPrice / 1e18 as redemptionPriceFROM (SELECT 'WETH' as asset, * FROM liquity_v2_ethereum.trovemanager_weth_evt_redemptionUNION ALLSELECT 'wstETH' as asset, * FROM liquity_v2_ethereum.trovemanager_wsteth_evt_redemptionUNION ALLSELECT 'rETH' as asset, * FROM liquity_v2_ethereum.trovemanager_reth_evt_redemption)),redemption_data as (SELECTrc.call_tx_hash, rc.call_tx_from, rc.call_tx_to, rc.call_block_time, rc.call_block_number, rc.boldAmount, rc.maxFeePercentage, rc._maxIterationsPerCollateral, re.asset, re.evt_index, re.ethFee, re.ethSent, re.actualBoldAmount, re.attemptedBoldAmount, re.price, re.redemptionPriceFROM redemption_calls rcLEFT JOIN redemption_events re on rc.call_tx_hash = re.evt_tx_hash/* WHERE rc.call_block_time BETWEEN CAST('2025-06-05 00:00' AS TIMESTAMP) AND CAST('2025-06-12 00:00' AS TIMESTAMP) */),eth_price as (SELECT timestamp as time, price as priceETH FROM prices.minute