Skip to content

Commit

Permalink
watcher: use provided object
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Apr 3, 2024
1 parent 7a9fda0 commit 62d7c46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions watcher/src/watchers/NTTWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,14 @@ export class NTTWatcher extends Watcher {
);
const sourceToken: string =
transceiverMessage.ntt_managerPayload.payload.sourceToken.toString('hex');
const decimals = transceiverMessage.ntt_managerPayload.payload.trimmedAmount.decimals;
const amount = transceiverMessage.ntt_managerPayload.payload.trimmedAmount.amount;
const trimmedAmount: TrimmedAmount = new TrimmedAmount(amount, decimals);
const lc: LifeCycle = {
srcChainId: chainToChainId(this.chain),
destChainId: decodedTransfer.recipientChain,
sourceToken,
tokenAmount: trimmedAmount.normalize(NTT_DECIMALS),
tokenAmount:
transceiverMessage.ntt_managerPayload.payload.trimmedAmount.normalize(
NTT_DECIMALS
),
transferSentTxhash: txhash.startsWith('0x') ? txhash.slice(2) : txhash,
transferBlockHeight: BigInt(blockNumber),
redeemedTxhash: '',
Expand Down

0 comments on commit 62d7c46

Please sign in to comment.