Query editor
WITH MostRecentDai AS (SELECToutput_0 / 1e45 AS dai,call_block_time,call_tx_hash AS dai_tx_hashFROM maker_ethereum.vat_call_daiWHERE _0 = 0xA950524441892A31ebddF91d3cEEFa04Bf454466ORDER BY call_block_time DESCLIMIT 1), MostRecentSin AS (SELECToutput_0 / 1e45 AS sin,call_block_time,call_tx_hash AS sin_tx_hashFROM maker_ethereum.vat_call_sinWHERE _0 = 0xA950524441892A31ebddF91d3cEEFa04Bf454466ORDER BY call_block_time DESCLIMIT 1)SELECTMostRecentDai.dai,MostRecentSin.sin,MostRecentDai.dai_tx_hash,MostRecentSin.sin_tx_hash,MostRecentDai.dai - MostRecentSin.sin AS surplus_bufferFROM MostRecentDai, MostRecentSin;