Skip to content

Commit

Permalink
fix data cast
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Feb 12, 2024
1 parent aefcabe commit 443c8e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sql/orderbook/order_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 443c8e9

Please sign in to comment.