From 443c8e92f13dcd8d48c728cd6982a20a9021fbb9 Mon Sep 17 00:00:00 2001 From: harisang Date: Mon, 12 Feb 2024 19:40:43 +0200 Subject: [PATCH] fix data cast --- src/sql/orderbook/order_rewards.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/orderbook/order_rewards.sql b/src/sql/orderbook/order_rewards.sql index 5d2f3d7d..15220ad5 100644 --- a/src/sql/orderbook/order_rewards.sql +++ b/src/sql/orderbook/order_rewards.sql @@ -157,9 +157,9 @@ select WHEN protocol_fee_token is not NULL THEN concat('0x', encode(protocol_fee_token, 'hex')) END as protocol_fee_token, coalesce(protocol_fee_native_price, 0.0) as protocol_fee_native_price, - cast(oq.sell_amount as numeric(78, 0)) as quote_sell_amount, - cast(oq.buy_amount as numeric(78, 0)) as quote_buy_amount, - cast(oq.gas_amount * oq.gas_price as numeric(78, 0)) as quote_gas_cost, + cast(oq.sell_amount as numeric(78, 0)) :: text as quote_sell_amount, + cast(oq.buy_amount as numeric(78, 0)) :: text as quote_buy_amount, + cast(oq.gas_amount * oq.gas_price as numeric(78, 0)) :: text as quote_gas_cost, oq.sell_token_price as quote_sell_token_price from trade_hashes