@@ -12,23 +12,26 @@ use pinocchio::{error::ProgramError, AccountView, ProgramResult};
1212use pinocchio_token_2022:: instructions:: CloseAccount ;
1313const DLP_EPHEMERAL_BALANCE_TAG : & [ u8 ] = b"balance" ;
1414
15- /// Post-undelegate handler that first withdraws any remaining shuttle EATA
16- /// balance through the shared vault flow, then closes shuttle wallet ATA,
17- /// shuttle EATA, and shuttle metadata, refunding rent to the stored payer.
1815///
19- /// Expected accounts:
20- /// 0. [writable] Shuttle rent reimbursement account (must equal `ShuttleMetadata.payer`)
21- /// 1. [writable] Shuttle metadata account
22- /// 2. [writable] Shuttle EATA account (PDA [shuttle_metadata, mint])
23- /// 3. [writable] Shuttle wallet ATA account
24- /// 4. [writable] Destination token account
25- /// 5. [] Mint account
26- /// 6. [] Global Vault account
27- /// 7. [writable] Vault source token account
28- /// 8. [] Token program account
29- /// 9. [] Source program (must equal this program)
30- /// 10. [] Escrow authority
31- /// 11. [signer] Escrow signer PDA
16+ /// Executes on:
17+ ///
18+ /// Accounts:
19+ ///
20+ /// 0: [writable] - Any : Shuttle rent reimbursement account (must equal `ShuttleMetadata.payer`).
21+ /// 1: [writable] - PDA : Shuttle metadata account.
22+ /// 2: [writable] - PDA : Shuttle EATA account (PDA derived from [shuttle_metadata, mint]).
23+ /// 3: [writable] - SPL : Shuttle wallet ATA account.
24+ /// 4: [writable] - SPL : Destination token account.
25+ /// 5: [] - SPL : Mint account.
26+ /// 6: [] - PDA : Global vault account.
27+ /// 7: [writable] - SPL : Vault source token account.
28+ /// 8: [] - SPL : Token program account.
29+ /// 9: [] - Program : Source program (must equal this program).
30+ /// 10: [] - Any : Escrow authority.
31+ /// 11: [signer] - PDA : Escrow signer PDA.
32+ ///
33+ /// Instruction Data: escrow_index (u8)
34+ ///
3235pub fn process_close_shuttle_ata_intent (
3336 accounts : & [ AccountView ] ,
3437 instruction_data : & [ u8 ] ,
0 commit comments