Query editor
-- SELECT-- SUBSTR(TRY_CAST(data AS VARCHAR), 1, 64) AS duration,-- SUBSTR(TRY_CAST(data AS VARCHAR), 65, 128) AS amount-- FROM-- mantle.logs-- WHERE-- "topic0" = 0x71a810dd86885cd9fea6e9b97fe8287ec71dd6475db601e9b925679c9f3ec3d1-- AND "tx_to" = 0xed884f0460a634c69dbb7def54858465808aacefwith base as (SELECT *FROM TABLE (decode_evm_event (abi => '{"anonymous": false,"inputs": [{"indexed": false,"internalType": "uint256","name": "duration","type": "uint256"}],"name": "DepositWithDuration","type": "event"}',input => TABLE (SELECT * FROM mantle.logsWHERE 1=1and contract_address = 0xed884f0460a634c69dbb7def54858465808aacef -- Mantle Pooland topic0 = 0x71a810dd86885cd9fea6e9b97fe8287ec71dd6475db601e9b925679c9f3ec3d1 -- Swap()and block_date > now() - interval '1' day))))select * from base