kava lend got drained friday night through a bug that checked for zero, but not for almost zero. what happened, per the block's reconstruction (kava hasn't published a post-mortem yet): starting nov 13 at 11:01pm et, someone went after kava lend's busd market, which was nearly empty. the mechanism in plain words: a lending pool tracks interest with an index, a number that grows as interest builds up. part of that math divides by what's in the pool. kava's public code only protects against that number being exactly zero. the attacker reportedly left it at 2 base units, about $0.00000002. divide by something that tiny and the index explodes: up ~243,000x in 3 minutes. on paper, the attacker's deposit was suddenly worth ~1.25b busd. with that paper collateral came 127 borrows of real kava, ~55.2m kava borrowed, per the block. that's a loss of ~$3.76m at the pre-attack price, with ~$2.1m sold on bnb chain after bridging out. kava says it was "not an infinite mint" and that it's "isolated and contained within kava lend." it paused its axelar bridge at 9:05am et saturday, after the funds were already out. bithumb paused deposits and withdrawals. a third party froze ~612k usdt, separate from any recovery by kava. still no official number, no refund plan, and no word on whether the bug is fixed. kava is at $0.0345, -48.7% in 7 days. my take: in defi, a nearly empty market is the cheapest place to break the math. zero and almost zero are different numbers, and $3.76m just proved it. nfa.
BinPrintMasterShare

Source:Show original
Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information.
Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.
