The function uses direct lamport borrowing for balance transfers, bypassing Solana’s CPI (Cross-Program Invocation) mechanism, which is a secure standard for token transfers.
Direct lamport borrowing does not enforce system program constraints.
May cause issues with rent exemption and account validity.
Possible inconsistencies in account balances.
Increased vulnerability to mismanagement or unintended behavior in account balances.
Manual Code Review
Solana Docs Reference
Use a CPI transfer instead of direct lamport borrowing:
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.