Skip to content

Commit 441842b

Browse files
Add note on safety of dest increment
Co-authored-by: Fernando Otero <[email protected]>
1 parent 121c50e commit 441842b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p-token/src/processor/shared/transfer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ pub fn process_transfer(
180180
// `source_account_info`.
181181
let destination_lamports =
182182
unsafe { destination_account_info.borrow_mut_lamports_unchecked() };
183+
// Note: The total lamports supply is bound to `u64::MAX`.
183184
*destination_lamports += amount;
184185
}
185186
}

0 commit comments

Comments
 (0)