We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e62a06 commit 3405adbCopy full SHA for 3405adb
p-token/src/processor/close_account.rs
@@ -50,7 +50,9 @@ pub fn process_close_account(accounts: &[AccountInfo]) -> ProgramResult {
50
unsafe {
51
// Moves the lamports to the destination account.
52
//
53
- // Note: The total lamports supply is bound to `u64::MAX`.
+ // Note: This is safe since the runtime checks for balanced instructions
54
+ // before and after each CPI and instruction, and the total lamports
55
+ // supply is bound to `u64::MAX`.
56
*destination_account_info.borrow_mut_lamports_unchecked() += source_account_info.lamports();
57
// Closes the source account.
58
source_account_info.close_unchecked();
0 commit comments