Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve L1 deposit transaction price #192

Merged

Conversation

ptisserand
Copy link
Collaborator

This PR will add transaction price (in USD) for DepositInitiatedL1 event.

Ethereum price is provided by Moralis (WETH on Uniswap v3)

@ptisserand ptisserand requested a review from remiroyc April 17, 2024 14:41
Copy link

vercel bot commented Apr 17, 2024

@ptisserand is attempting to deploy a commit to the Screenshot Team on Vercel.

A member of the Team first needs to authorize it.

let gas = self.client.get_tx_fees(&e.tx_hash).await?;
let eth_price = self
.pricer
.get_price("0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est le même contract address sur sepolia (pour eth) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moralis fournit le prix d'un token en s'appuyant sur uniswap v3 (mainnet) et c'est l'adresse du WETH.
Lorsque l'indexeur tourne sur sepolia, il recevra toujours le prix du WETH de la pool uniswap, ça ne devrait pas poser de soucis.

@remiroyc remiroyc closed this Apr 17, 2024
@remiroyc remiroyc reopened this Apr 17, 2024
@remiroyc remiroyc merged commit 244542f into ArkProjectNFTs:main Apr 17, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants