ultrasoundmoney / frontend

ultrasound.money frontend
https://ultrasound.money
MIT License
212 stars 66 forks source link

Add Feature - Eth Money Velocity widget #257

Open markoinether opened 1 year ago

markoinether commented 1 year ago

Rationale

A money metric frequently used in trad finance regarding currency. Gives good indicator about the relative change in economic activity across time.

General formula

V = Velocity of money GDP = total value of economic transactions M1 = Monetary Base

$V = \frac {GDP}{M1}$

Eth relevant inputs

Velocity The idea here, is to include all transfers of eth in Ethereum economy, this formula should cover it:

$GDP_{eth}$ = eth_pure_transfers + tx_msg.value + weth.transfer + weth.transferFrom

NOTE: This does not include L2s + sidechains

M1 - coins and currency in circulation

M1 should include coins and currency in circulation. "in circulation" could be debatable. To be consistant with other graph we could use the liquid ETH from "scarcity" widget image

Thus:

M1 = totalSupply - ("staking" +"defi (stale)" + "burn")

Resources

velocity Money supply

alextes commented 1 year ago

I totally missed this @markoinether . Sorry. Regardless, still hunkered down in the current dev cycle, when we get back to the roadmap I'll make sure to discuss and evaluate this with the team. Thanks for the suggestion!

ameya-deshmukh commented 1 year ago

@alextes I'll be really happy to pick this up. Let me know if I can, thanks :)

alextes commented 1 year ago

@ameya-deshmukh I think this one would need more design thinking but would you be interested in contributing to another widget?

For example I've been wanting a better accounting of how much ETH is in DeFi. Maybe using DefiLlama, would you be interested in helping with that? It would require some Rust backend work.

Screenshot 2023-03-07 at 09 23 35

If you prefer TypeScript frontend we have this design which needs implementation:

Screenshot 2023-03-07 at 09 27 13

lmk, and let's continue in a separate issue!

ameya-deshmukh commented 1 year ago

@alextes For sure! Keen on both issues but more excited about the ETH accounting in DeFi one! Can you open a separate issue please? LFG!

alextes commented 1 year ago

@ameya-deshmukh #274