-
Notifications
You must be signed in to change notification settings - Fork 241
Description
When a Kora node operator's payment address does not have an ATA for an accepted fee token (e.g., USDC), the client currently cannot safely use createAssociatedTokenIdempotent because the ATA creation cost would be borne entirely by the client.
Proposal: If the payment address ATA does not exist at transaction time, Kora should:
Allow the client to include a createAssociatedTokenIdempotent instruction for the destination ATA
Deduct the ATA creation rent cost from the client's fee payment amount
This makes createAssociatedTokenIdempotent safe to use in the SDK's paymaster flow without unfairly charging the client for the operator's missing ATA. The operator is still responsible for maintaining ATAs via kora rpc initialize-atas, but this provides a graceful fallback.
- This should be a config the node operator can decide to enable or disable
Acceptance criteria:
Kora detects when the payment address ATA does not exist for the fee token
ATA creation rent cost is subtracted from the client's fee amount
Existing flow (ATA already exists) is unaffected
SDK can safely use createAssociatedTokenIdempotent without extra client cost