Skip to content

Commit

Permalink
Merge pull request #254 from sotatek-dev/feat/add-token
Browse files Browse the repository at this point in the history
fix: crawler token name
  • Loading branch information
Sotatek-TanHoang authored Jan 9, 2025
2 parents 7ab60ba + b94f10a commit b51673a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/modules/crawler/crawler.evmbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export class BlockchainEVMCrawler {
networkFrom: ENetworkName.ETH,
networkReceived: ENetworkName.MINA,
tokenFromName: event.returnValues.tokenName,
tokenReceivedName: `W${event.returnValues.tokenName}`,
tokenReceivedAddress: config.toAddress,
txHashLock: event.transactionHash,
receiveAddress: event.returnValues.receipt,
Expand Down Expand Up @@ -150,7 +151,7 @@ export class BlockchainEVMCrawler {
amountReceived: event.returnValues.amount,
protocolFee: event.returnValues.fee,
tokenReceivedAddress: event.returnValues.token,
tokenReceivedName: EAsset.ETH,
// tokenReceivedName: EAsset.ETH,
});
// update total weth burned.
const currentConfig = await configRepo.findOneBy({ fromAddress: event.returnValues.token });
Expand Down
3 changes: 2 additions & 1 deletion src/modules/crawler/crawler.minabridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ export class SCBridgeMinaCrawler {
tokenFromAddress: config.fromAddress,
networkFrom: ENetworkName.MINA,
networkReceived: ENetworkName.ETH,
tokenFromName: EAsset.WETH,
tokenFromName: `W${config.asset}`,
tokenReceivedName: config.asset,
tokenReceivedAddress: config.toAddress,
txHashLock,
receiveAddress: receiveAddress,
Expand Down

0 comments on commit b51673a

Please sign in to comment.