The aftermath of the KelpDAO hack has triggered a chain reaction in stablecoin markets, resulting in unforeseen outcomes. In the 24 hours following the attack, Aave users borrowed approximately $300 million against their USDT deposits, according to Chaos Labs data.

This borrowing surge is not driven by demand but rather by users' inability to withdraw their funds due to maxed-out stablecoin pools. As a result, depositors are taking out loans against their own funds at a loss to access liquidity. This desperate measure for liquidity is a sign of the illiquidity in Aave's stablecoin markets. The KelpDAO exploit has locked every stablecoin exit on Aave, causing a $300 million increase in borrowing with USDT collateral.

To understand how this happened, it's essential to comprehend how Aave is supposed to work and where the system failed. Aave is a decentralized finance protocol that enables users to lend and borrow cryptocurrencies without intermediaries. Users deposit assets into lending pools and earn interest, while others borrow from those pools by posting crypto assets as collateral.

The system is designed to self-correct automatically through interest rates. However, when the assumption of sufficient liquidity breaks down, the entire system is affected. The KelpDAO exploit, which involved the manipulation of the protocol's bridge infrastructure, led to the release of 116,500 rsETH tokens, worth approximately $292 million.

These fake tokens were deposited into lending protocols, mostly Aave, to borrow real ETH and other assets. The exploit resulted in Aave freezing rsETH markets, which stopped the bleeding but also triggered a chain reaction that produced the $300 million borrowing surge. When the exploit news broke, large investors withdrew billions of dollars worth of cryptocurrencies from Aave's liquidity pools, draining the pools and causing utilization rates to rise to 100%.

This led to a situation where every lending pool held a fixed amount of assets deposited by users, with nothing remaining for withdrawals. Trapped USDT and USDC depositors, unable to withdraw their money, began drawing loans from their locked deposits, resulting in a desperate act of borrowing against their own money at a loss. Aave allows users to borrow up to 75% of the total loan-to-value of their deposited collateral, depending on the asset and its risk parameters.

This has resulted in users taking out up to 3/4 of the value of their Aave position, reducing liquidity in other markets. The incident highlights that decentralized finance does not mean risk-free, and the repercussions of the KelpDAO hack serve as a reminder of the risks involved in DeFi.