pradel / stackspulse

Real-Time Gateway to Stacks DeFi.
https://www.stackspulse.com
MIT License
13 stars 7 forks source link

Add "speed of DeFi" #154

Open vini-btc opened 1 week ago

vini-btc commented 1 week ago

Given all the recent developments in the ecosystem, "speed" became a very important topic, especially on the DeFi front.

I was wondering if it would make sense to add some speed related metrics to the StacksPulse dashboard. I was thinking of having something like a "time to confirmation" visualization, where we show how long transactions for a given protocol/contract would take, for example.

I haven't looked into the code yet, I wanted to get a feel of whether or not you @pradel and the community would find it useful and maybe bounce off some ideas of how this could look like. But I'd be happy to give it a try if we agree that's useful.

Let me know what you think.

pradel commented 6 days ago

@vini-btc That's a nice idea, but I don't know if the work is justified. Hopefully, this issue will not be an issue anymore in a few weeks/months, and all transactions can be confirmed in a timely manner. To do the logic you shared it would require quite some work to have queues processing the updates and monitoring how long it takes to include a tx in a block. So spending some time doing the logic and nice visualisations for smth that might be deprecated soon is maybe not the best, wydt?

vini-btc commented 6 days ago

Reflecting a bit on it... I believe "speed of settlement" will often be a relevant metric for defi, not only during the Nakamoto performance improvements. It is a metric that protocol developers, Stacks adoption, further improvements to the blockchain, and other aspects can influence. That said, it is hard to say how much we could be seeing it move in the long run or even to try to predict the influence of each of these aspects. And that's a personal assumption; I'm not sure how others think of it.

Ultimately, they would only be worth it if everyone agrees there's some correlation between speed and the value each Stacks DeFi protocol brings AND if that would be something others can act upon. Not sure if that changes what you said, but If you think that's not necessarily true, I totally understand why. Let me know, and I can close the issue, or feel free to close it yourself.