Skip to content

Add Terms of Service acceptance gate before first transaction #754

@Ejirowebfi

Description

@Ejirowebfi

Description

TosContext.tsx exists but the ToS acceptance is not enforced before the first on-chain transaction. Users should explicitly accept the disclaimer before spending real XLM.

Tasks

  • Show a ToS modal on first wallet connection if not previously accepted
  • Store acceptance in localStorage via useLocalStorage
  • Block create_token, mint_tokens, and burn calls until ToS is accepted
  • Add a unit test for the acceptance gate

Acceptance Criteria

  • ToS modal appears on first connection
  • Declining the ToS disconnects the wallet
  • Accepting persists the decision and does not show the modal again

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions