From 11e2d8a11b0529b1914e9881373298b149ff098c Mon Sep 17 00:00:00 2001 From: Haris Angelidakis <64154020+harisang@users.noreply.github.com> Date: Thu, 26 Dec 2024 10:53:22 +0200 Subject: [PATCH] Revert column name change to surplus_fee (#476) PR #471 adjusted the sql queries to work with the renamed column in the backend db; surplus_fee was changed to executed_fee. However, dune-sync and some dune-queries break because of that so this PR just renames the final column stored during the order data sync job to surplus_fee. A proper migration to executed_fee needs to happen, but this can wait a bit. --- queries/orderbook/order_data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/orderbook/order_data.sql b/queries/orderbook/order_data.sql index a5da81ee..15a7dc83 100644 --- a/queries/orderbook/order_data.sql +++ b/queries/orderbook/order_data.sql @@ -192,7 +192,7 @@ select concat('0x', encode(trade_hashes.solver, 'hex')) as solver, quote_solver, concat('0x', encode(trade_hashes.tx_hash, 'hex')) as tx_hash, - cast(coalesce(executed_fee, 0) as text) as executed_fee, + cast(coalesce(executed_fee, 0) as text) as surplus_fee, coalesce(reward, 0.0) as amount, cast(coalesce(cast(protocol_fee as numeric(78, 0)), 0) as text) as protocol_fee, case