Skip to content

Commit

Permalink
ft: update logs
Browse files Browse the repository at this point in the history
Signed-off-by: bingyuyap <[email protected]>
  • Loading branch information
bingyuyap committed Nov 15, 2024
1 parent 2c40baf commit 1da0708
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions common/src/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,5 @@ export function getTokenBalanceChange(
const change =
BigInt(postTokenBalance.uiTokenAmount.amount) - BigInt(preTokenBalance.uiTokenAmount.amount);

console.log(`Token balance change for owner ${owner} and mint ${mint}: ${change}`);

return change;
}
4 changes: 0 additions & 4 deletions watcher/src/fastTransfer/swapLayer/solParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ export class SwapLayerParser {
? getTokenBalanceChange(transaction, recipient.toBase58(), this.USDC_MINT.toBase58())
: 0n;

console.log(`Instruction Name: ${instructionName}`);
console.log(`Recipient Account Key: ${recipient.toBase58()}`);
console.log(`Fee Recipient Account Key: ${this.getAccountKey(transaction, ix, 6)?.toBase58()}`);

const relayingFee = instructionName === 'complete_transfer_relay'
? getTokenBalanceChange(transaction, this.getAccountKey(transaction, ix, 6)?.toBase58() || '', this.USDC_MINT.toBase58()) : 0n;

Expand Down

0 comments on commit 1da0708

Please sign in to comment.