Skip to content

PULSE token balances and reward claiming are invisible in the app #208

Description

@Muyideen-js

Problem

PULSE is the project's reward token. The frontend never reads it and never claims it.

  • frontend/wallet.js displays only native XLM, from Horizon (loadBalance)
  • No call to pulse_token's balance, total_supply, symbol, or decimals
  • No call to the leaderboard's get_pending_reward or claim_pending_rewards

A user earns PULSE by betting and by referring, and has no way to see the balance or collect queued
rewards. scripts/deploy-testnet.sh explicitly grants the market, referral, and leaderboard
contracts minter rights on the token, so rewards are being minted into a balance nobody can see.

Acceptance criteria

  • A connected wallet shows its PULSE balance alongside XLM, with decimals read from the contract
  • Pending rewards are surfaced via get_pending_reward
  • A Claim rewards action calls claim_pending_rewards with the standard
    simulate -> sign -> submit -> poll flow
  • Token metadata (name, symbol, decimals) is read from the contract, not hardcoded
  • The token contract address is read from frontend/contracts.json, never inlined

Why this is critical

The reward token is the economic core of the product and currently has no user-facing existence.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: economicsMechanism design and protocol economicsarea: frontendWeb client, wallet, and user experiencefeaturepriority: criticalCritical to protocol safety or mainnet readiness

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions