Skip to content

Commit

Permalink
Use mainnet dai price for xdai (#457)
Browse files Browse the repository at this point in the history
This PR changes the price feed for xDAI on Gnosis to the one for DAI on
mainnet.

There is a discrepancy of around 1% between the dai (0.999917) and xdai
(1.008912) price on coin paprika on 2024-12-09.

Since Dune seems to be using the DAI price for WXDAI, there is a
discrepancy between conversions done on Dune and conversions done in the
payout script.

This change does not make the payout more accurate. But it makes it
easier to check payments against the corresponding Dune dashboards.

It is still up to an internal discussino if this should be merged.

Co-authored-by: Haris Angelidakis <[email protected]>
  • Loading branch information
fhenneke and harisang authored Dec 14, 2024
1 parent 49afaf0 commit a33252a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TokenId(Enum):
"""Coin Ids for coin paprika"""

ETH = "eth-ethereum"
XDAI = "xdai-xdai"
XDAI = "dai-dai"
COW = "cow-cow-protocol-token"
USDC = "usdc-usd-coin"

Expand Down

0 comments on commit a33252a

Please sign in to comment.