Developers could have prevented crypto’s 2022 hacks if they took basic security measures