by bouncycastle · 4y ago · 0 comments
Obtaining someone elses tokens because code had flaw = Hack
All exploits are making a program do what it says it does but where that behavior is different than what the developers hoped it would do.
They just didn't realize that there are dangers of using a price oracle for collateral valuation that has recently shown a sharp upward movement. (Which fals under "fitness for purpose".)
So the code correctly lent to someone at Mango's current valuation, it just didn't require the optimal-in-hindsight collateral ratio for such a volatile asset.