Skip to content

Commit

Permalink
Use block ts from debridge api
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Aug 27, 2024
1 parent cbd7667 commit b73cae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adapters/debridgedln/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ type ApiSolanaEvent = {
amount: string,
isDeposit: boolean;
giveAmountUSD: number;
blockTimestamp: number;
}

const solanaBlockNumberFirstUsedByDebridge = 166833820;
Expand Down Expand Up @@ -131,6 +132,7 @@ const getSolanaEvents = async (fromBlock: number, toBlock: number): Promise<Even
: event.token,
amount: ethers.BigNumber.from(Math.round(event.giveAmountUSD)),
isUSDVolume: true,
timestamp: event.blockTimestamp
}));
};

Expand Down

0 comments on commit b73cae3

Please sign in to comment.