Skip to content

Commit

Permalink
feat: add stablecoin pricing from coingecko (#17)
Browse files Browse the repository at this point in the history
**Motivation:**

add USDT, USDC and DAI pricing from coingecko. Pricing from Aave v2
oracle is too volatile for financials performance calcs due to
translation from eth denominated pricing

**Modifications:**

Describe the modifications you've done.

**Result:**

After your change, what will change.
  • Loading branch information
scottincrypto committed Aug 27, 2023
1 parent 230acdc commit b3b4ff9
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion aave_data/resources/financials_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,31 @@
"chain": "ethereum",
"decimals": 18,
"start_date": "2023-04-01",
}
},
"USDC": {
"cg_id": "usd-coin",
"symbol": "USDC",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"chain": "ethereum",
"decimals": 6,
"start_date": "2022-01-01",
},
"USDT": {
"cg_id": "tether",
"symbol": "USDT",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"chain": "ethereum",
"decimals": 6,
"start_date": "2022-01-01",
},
"DAI": {
"cg_id": "dai",
"symbol": "DAI",
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"chain": "ethereum",
"decimals": 18,
"start_date": "2022-01-01",
},
}

CONFIG_COMPOUND_v2 = {
Expand Down

0 comments on commit b3b4ff9

Please sign in to comment.