pub fn check_no_delegate(account: &AccountView) -> ProgramResultExpand description
Reject token accounts that have an active delegate.
Delegated token accounts can have funds pulled by the delegate at any time. DeFi vaults and escrows should reject deposits from delegated accounts to prevent unexpected fund movement.
ⓘ
check_no_delegate(deposit_token)?;