Skip to content

Fix recipient resize costs and avoid transferring frozen tokens#1174

Merged
bryzettler merged 3 commits intodevelopfrom
sentry-errors
Apr 7, 2026
Merged

Fix recipient resize costs and avoid transferring frozen tokens#1174
bryzettler merged 3 commits intodevelopfrom
sentry-errors

Conversation

@ChewingGlass
Copy link
Copy Markdown
Contributor

No description provided.

  - transfer.ts: Uses calculateRequiredBalance (adds MIN_WALLET_RENT) + checks ATA existence via getAccountInfo (line 72-73)
  - updateHotspotInfo.ts: Uses actual totalFee from deserialized onboarding txs
  - claimRewards.ts (direct): Uses actual getTotalTransactionFees + checks recipient existence via fetchMultiple (line 199) + conservative resize buffer for genuinely unpredictable CPI resize cost
  - claimRewards.ts (tuktuk): Uses actual getTotalTransactionFees(vtxs) after building txs
  - getInstructions.ts (swap): Uses actual getTransactionFee(tx) after building tx + checks ATA need based on destinationTokenAccount input
  - claim-rewards.ts (delegation): Checks actual ATA existence via getMultipleAccountsInfo on reward mints returned from buildClaimInstructions
  - mint.ts: Checks actual recipient DC ATA existence via getAccountInfo
@ChewingGlass ChewingGlass requested a review from bryzettler April 6, 2026 23:41
@bryzettler bryzettler merged commit dee7ce4 into develop Apr 7, 2026
97 of 98 checks passed
@bryzettler bryzettler deleted the sentry-errors branch April 7, 2026 15:15
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