This is great: "stable" coin project relies on community governance, so a hacker borrows $1b, uses it to get a 67% voting stake, votes that the project should wire them $182m, then pays back the huge loan and exits -- all in the space of 13 seconds. The "stable" coin immediately crashes. https://www.theverge.com/2022/4/18/23030754/beanstalk-cryptocurrency-hack-182-million-dao-voting
@mathew There is going to be UNENDING shenanigans with consensus voting and so-called smart contracts.
Its like a whole generation of people have to learn the hard way why financial regulations exist and are so complicated.
These motherfuckers should learn to play D&D. Then they will figure out what rules lawyering, unintended consequences, min-maxing, and system loopholes are.
@rysiek@RyunoKi As someone on Twitter just pointed out to me, this was really a leveraged hostile takeover followed by asset stripping β all of which is standard capitalism and perfectly legal when corporations do it.
a block executes atomically, it doesn't "take time" to execute a transaction so really it all happened instantly
the journalists are kinda crappy here since it's hard to articulate how transactions are included, but it's pointless to say "how long" it took to happen since any flash loan arbitrage like this always happens in the span of a single tx
@mathew@lunch "Flash Loans allow you to borrow any available amount of assets without putting up any collateral, as long as the liquidity is returned to the protocol within one block transaction."
Wow, that's a pretty cool hack actually. And in hindsight predictably leads to exactly this.
@xerz@rysiek Taking out a flash loan, buying votes, using them to transfer cash, and returning the loan all in a few seconds using software *is the hack*.
@mathew ngl Iβm surprised they were able to turn a profit out of it, guess they found a trade where this one obscure currency was able to be sold out within a few seconds β what a mess lol
also I concur with @rysiek β nothing was hacked, all that was done is quickly buying votes and using them to transfer cash
@mathew The raider borrowed $1Bn, paid it back 13 seconds later, and paid about $100M for the privilege. So that's 10% interest over 13 seconds, which works out to an annualized percentage rate of 24,275,077%.
@gudenau@mathew AFAIK, this is a vulnerability particular to proof-of-stake currencies. They're meant to replace computation intensive proof-of-work schemes by giving verification powers to the largest stakeholders. That's how this transaction happened: The trader in question borrowed enough to become the largest single stakeholder in the system, which gave them unilateral powers to verify their own transaction. It's a known vulnerability that PoS schemes struggle to defend against.