Skip to content

Commit

Permalink
fix portal
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Oct 8, 2024
1 parent a876ea8 commit e8a285e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/adapters/portal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ interface SolanaEvent {
token: string;
amount: string;
isDeposit: boolean;
timestamp: number;
}

const getSolanaEvents = async (fromSlot: number, toSlot: number): Promise<EventData[]> => {
Expand Down Expand Up @@ -332,6 +333,7 @@ const getSolanaEventsDestChain = async (fromBlock: number, toBlock: number, dest
originChain: "solana",
isDeposit: true,
chainOverride: destChain === "avax" ? "avalanche" : destChain,
timestamp: event.timestamp * 1000,
}));
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/utils/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export const runAdapterHistorical = async (

let solanaTimestampsMap = {} as { [blockNumber: number]: number };

if (chain === "solana" && bridgeDbName !== "debridgedln") {
if (chain === "solana" && !["debridgedln", "portal"].includes(bridgeDbName)) {
latestSolanaBlock = await getLatestBlock("solana");
const connection = getConnection();

Expand Down

0 comments on commit e8a285e

Please sign in to comment.