The collapse of the terraUSD stablecoin and the associated Luna token rocked cryptocurrency markets.