Skip to content

Commit

Permalink
fix: cast amount_raw cols to uint256 and drop project_main_id from fi…
Browse files Browse the repository at this point in the history
…nal select in sanctum_router_base_trades.sql
  • Loading branch information
senyor-kodi committed Nov 26, 2024
1 parent e99a5a9 commit b74fe3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ SELECT
, b.block_time
, b.block_slot
, b.trade_source
, t.amount_bought as token_bought_amount_raw
, b.token_sold_amount_raw
, CAST(t.amount_bought as uint256) as token_bought_amount_raw
, CAST(b.token_sold_amount_raw as uint256) as token_sold_amount_raw
, CAST(NULL as double) as fee_tier
, b.token_bought_mint_address
, b.token_sold_mint_address
, b.token_bought_vault
, b.token_sold_vault
, CAST(NULL as varchar) as project_program_id
, 'stkitrT1Uoy18Dk1fTrgPw8W6MVzoCfYoAFT4MLsmhq' as project_main_id
--, 'stkitrT1Uoy18Dk1fTrgPw8W6MVzoCfYoAFT4MLsmhq' as project_main_id
, b.trader_id
, b.tx_id
, b.outer_instruction_index
Expand Down

0 comments on commit b74fe3b

Please sign in to comment.