diff --git a/interface/src/instruction.rs b/interface/src/instruction.rs index 7263768..2a0f1a8 100644 --- a/interface/src/instruction.rs +++ b/interface/src/instruction.rs @@ -28,7 +28,12 @@ pub enum TransferHookInstruction { /// 5. ..`5+M` `[]` `M` optional additional accounts, written in /// validation account data Execute { - /// Amount of tokens to transfer + /// Amount of tokens to transfer. + /// + /// When Token-2022 invokes a hook from a confidential transfer, the + /// amount is not known to the token program and `u64::MAX` is passed + /// as a convention. A hook that enforces amount-based policy must + /// handle this sentinel explicitly. amount: u64, },