Detect unfunded accounts; show XLM balance and a testnet "Fund with Friendbot" button

Abierto
#88 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start in web/lib/contract.ts, where hasUsdcTrustline currently treats a missing account as no trustline, and in web/components/TrustlineButton.tsx, where the Enable USDC action runs. Add a Horizon lookup for the account and its XLM balance, then show a funding prompt before the trustline step. Done means an unfunded wallet sees the prompt, testnet offers Fund with Friendbot and the flow continues without a reload, and mainnet shows guidance only.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

difficulty: intermediate enhancement help wanted Stellar Wave ux web

Difficulty: Intermediate

Problem

hasUsdcTrustline treats a missing account as "no trustline", so "Enable USDC" is offered; it then fails because the account does not exist or has no XLM for fees.

Why it matters

This is the first wall a new tester hits, and the error is confusing.

Scope of work

Check the account and its XLM balance via Horizon, explain what is missing, and on testnet offer a "Fund with Friendbot" button before the trustline step. On other networks show guidance only.

Acceptance criteria

  • An unfunded wallet sees a funding prompt before the trustline step.
  • After funding, the flow continues without a reload.
  • Mainnet shows guidance without calling Friendbot.

Relevant files

  • web/lib/contract.ts, web/components/TrustlineButton.tsx

Dependencies

Soft dependency on #12 (error messages).

Maintainer discussion needed?

No.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.