Smart contracts’ platforms Ethereum and Solana posted hefty gains just days after a massive $320 million hack that affected both networks.