coral-xyz / sealevel-attacks

☠️ Common Security Exploits and Protections on Solana
507 stars 95 forks source link

Added necessary comments to insecure, recommended, and secure closing account programs #47

Open techvoyagerX opened 1 month ago

techvoyagerX commented 1 month ago

Added comments to the sealevel attack programs (insecure, recommended, and secure versions) to improve code clarity. The comments explain key logic, such as lamport transfers, account closures, and security practices, while avoiding unnecessary verbosity.