Skip to content

fix: use CreateIdempotent for ATA creation in Jito staking and enable…#214

Merged
lcovar merged 1 commit intomasterfrom
BTC-3166-jito-ata-idempotent
Mar 17, 2026
Merged

fix: use CreateIdempotent for ATA creation in Jito staking and enable…#214
lcovar merged 1 commit intomasterfrom
BTC-3166-jito-ata-idempotent

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Mar 17, 2026

…Token

Jito staking fails with "Provided owner is not allowed" when the JitoSOL ATA already exists on-chain but trustedTokens DB is out of sync. The ATA program's non-idempotent Create instruction rejects accounts that aren't System-owned. Switch to CreateIdempotent (instruction data [1]) which is a no-op if the ATA already exists.

Reuses the existing create_ata_idempotent_ix() helper that the payment intent path already uses correctly.

Ticket: BTC-3166

…Token

Jito staking fails with "Provided owner is not allowed" when the JitoSOL
ATA already exists on-chain but trustedTokens DB is out of sync. The ATA
program's non-idempotent Create instruction rejects accounts that aren't
System-owned. Switch to CreateIdempotent (instruction data [1]) which is
a no-op if the ATA already exists.

Reuses the existing create_ata_idempotent_ix() helper that the payment
intent path already uses correctly.

BTC-3166
@lcovar lcovar requested a review from a team as a code owner March 17, 2026 17:51
@lcovar lcovar merged commit 038601c into master Mar 17, 2026
13 checks passed
@lcovar lcovar deleted the BTC-3166-jito-ata-idempotent branch March 17, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants