Skip to content

Commit 2edf20b

Browse files
committed
Add note
1 parent c3845f1 commit 2edf20b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

p-token/src/processor/close_account.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ pub fn process_close_account(accounts: &[AccountInfo]) -> ProgramResult {
4949
// there are no "active" borrows of `source_account_info` account data.
5050
unsafe {
5151
// Moves the lamports to the destination account.
52+
//
53+
// Note: The total lamports supply is bound to `u64::MAX`.
5254
*destination_account_info.borrow_mut_lamports_unchecked() += source_account_info.lamports();
5355
// Closes the source account.
5456
source_account_info.close_unchecked();

0 commit comments

Comments
 (0)