Skip to content

Commit

Permalink
Merge pull request #295 from retro-bridge/master
Browse files Browse the repository at this point in the history
RetroBridge some changes
  • Loading branch information
vrtnd authored Oct 15, 2024
2 parents bef9428 + 1c26972 commit f2c48af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/adapters/retrobridge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getTxsBlockRangeEtherscan, wait } from "../../helpers/etherscan";
import { getTxsBlockRangeMerlinScan } from "../../helpers/merlin";
import { getTxsBlockRangeBtrScan } from "../../helpers/btr";
import { EventData } from "../../utils/types";
import { ethers } from "ethers";

export const bridgesAddress = {
arbitrum: ["0x009905bf008CcA637185EEaFE8F51BB56dD2ACa7"],
Expand Down Expand Up @@ -88,6 +89,11 @@ const nativeTokens: Record<string, string> = {
taiko: "0x0000000000000000000000000000000000000000",
btr: "0x0000000000000000000000000000000000000000",
zklink: "0x0000000000000000000000000000000000000000",
manta: "0x0000000000000000000000000000000000000000",
mode: "0x0000000000000000000000000000000000000000",
mint: "0x0000000000000000000000000000000000000000",
zora: "0x0000000000000000000000000000000000000000",
kroma: "0x0000000000000000000000000000000000000000",
};

type SupportedChains = keyof typeof bridgesAddress;
Expand Down Expand Up @@ -171,7 +177,7 @@ const constructParams = (chain: SupportedChains) => {
from: tx.from,
to: tx.to,
token: nativeTokens[chain],
amount: tx.value,
amount: ethers.BigNumber.from(tx.value),
isDeposit: address.toLowerCase() === tx.to,
};
return event;
Expand Down

0 comments on commit f2c48af

Please sign in to comment.