Skip to content

Commit 5816fd9

Browse files
authored
Update Solana fee wallet blacklist and modify SQL query for token amounts (#4565)
1 parent e89799b commit 5816fd9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

fees/phantom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const solana_fee_wallet_addresses = [
1616

1717
const solana_blacklist_mints = [
1818
'DWxU1Ew5yjFebSui8xzRYPE3FwgGzp8F1iKcQFyUezJX',
19+
'2xaPstY4XqJ2gUA1mpph3XmvmPZGuTuJ658AeqX3gJ6F'
1920
];
2021

2122
// ETH fee wallet addresses

helpers/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export async function getSolanaReceived({ options, balances, target, targets, bl
410410

411411
// Construct SQL query to get sum of received token values in USD and native amount
412412
const query = `
413-
SELECT '${ADDRESSES.solana.USDC}' as token, SUM(usd_amount * 1000000) as amount
413+
SELECT mint as token, SUM(raw_amount) as amount
414414
FROM solana.assets.transfers
415415
WHERE to_address IN (${formattedAddresses})
416416
AND block_timestamp BETWEEN TO_TIMESTAMP_NTZ(${options.startTimestamp}) AND TO_TIMESTAMP_NTZ(${options.endTimestamp})

0 commit comments

Comments
 (0)