From a33252a71ec2633def635540aa9204c21edfa79d Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Sat, 14 Dec 2024 11:09:41 +0100 Subject: [PATCH] Use mainnet dai price for xdai (#457) 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 <64154020+harisang@users.noreply.github.com> --- src/fetch/prices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch/prices.py b/src/fetch/prices.py index 9a18fe75..582a7e16 100644 --- a/src/fetch/prices.py +++ b/src/fetch/prices.py @@ -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"