Skip to content

Limit relay-funded claimable account recreations - #99

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/solana-relay-recreation-limit
Sep 24, 2026
Merged

raymondjacobson merged 1 commit into
mainfrom
codex/solana-relay-recreation-limit

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • detect claimable token account recreations using the retained sol_claimable_accounts history
  • cap relay-sponsored recreations globally at 10 per UTC day using an atomic Redis counter
  • leave first-time user-bank creation unaffected
  • reject the 11th recreation before the relay signs or pays

Testing

  • npm test --workspace=@pedalboard/solana-relay -- --run (54 tests passed)
  • TypeScript 5.0.4 type-check
  • ESLint on changed files
  • git diff --check

@raymondjacobson
raymondjacobson merged commit 5636f1a into main Sep 24, 2026
2 checks passed
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.

1 participant