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:
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: