MetricsDAO / harmony_dbt

DBT Project for the Harmony Blockchain
12 stars 8 forks source link

ONE token price incorrect #135

Closed lizmartinis closed 2 years ago

lizmartinis commented 2 years ago

mdao_harmony.tokenprice_one is not showing the ONE token price correctly. Seems to be showing Jewel price instead.

Issue submitted to flipside by Sam - discord community moderator.

eevui commented 2 years ago

Where do we collect information about token prices? I do see the tables, but where do they come from?

antonyip commented 2 years ago

Think its based off dex prices. With the hack of harmony bridge. Stable coins aren’t keeping the peg anymore.

eevui commented 2 years ago

Ah you're right.

Checking the model, it is indeed basin off JEWEL price. There's a tokenprices table that contains a WONE mapping. So we can base it off there, no?