The function directly modifies lamports using:
While this works, CPI transfers are preferred for security and maintainability.
If there are other constraints or checks (e.g., rent exemption), directly modifying lamports can cause unintended behavior.
Use the invoke
method to perform the SOL transfer securely:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.