passportxyz / passport

Passport allows users to prove their identity through a secure, decentralized UI
Other
941 stars 451 forks source link

Move off Moralis API #1854

Open Jkd-eth opened 10 months ago

Jkd-eth commented 10 months ago

User Story:

As a Product manager at Gitcoin Passport I want to swap from the Moralis price feed So that I can save on monthly costs

Acceptance Criteria

GIVEN a user pushes an onchain Passport WHEN we determine the price of ETH in USD terms THEN we use the Uniswap USDC/WETH pool contract to determine the active price

We can make the call using Alchemy and it's only 26 compute per call (225k compute / month)

We should still go through the fallback option as we did with the Moralis API if we are unable to get an updated value at the next ~5min window

Product & Design Links:

#### Tech Details: #### Open Questions: #### Notes/Assumptions:
nutrina commented 10 months ago

Here are some relevant links: