Derive the scheduler fee ATA for the permissionless execution path
(ADR-0016 amended).
When the caller (authority / fee_payer) is NOT the gateway signer and
the gateway has a non-zero schedulerShareBps, the program requires the
relayer's input-mint ATA as the LAST entry in remaining_accounts.
Without it, execution fails with MissingSchedulerFeeAccount.
Returns the ATA pubkey when the permissionless + scheduler-share
conditions are met, or null otherwise (trusted-signer path or zero
scheduler share → no ATA needed).
The ATA is the standard associated token account for (inputMint, authority) — the program validates owner == fee_payer and
mint == input_mint on-chain (InvalidSchedulerFeeAccount).
Derive the scheduler fee ATA for the permissionless execution path (ADR-0016 amended).
When the caller (
authority/ fee_payer) is NOT the gateway signer and the gateway has a non-zeroschedulerShareBps, the program requires the relayer's input-mint ATA as the LAST entry inremaining_accounts. Without it, execution fails withMissingSchedulerFeeAccount.Returns the ATA pubkey when the permissionless + scheduler-share conditions are met, or
nullotherwise (trusted-signer path or zero scheduler share → no ATA needed).The ATA is the standard associated token account for
(inputMint, authority)— the program validatesowner == fee_payerandmint == input_minton-chain (InvalidSchedulerFeeAccount).Pure function — PDA derivation only, no RPC.