Multi-token invoices (choose the token per invoice)

Abierto
#35 4 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@robertocarlous ya está trabajando en esto.

Desde el 21/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

contract difficulty: advanced enhancement needs-discussion Stellar Wave web

Difficulty: Advanced

Description

contracts/invoice/README.md says invoices "store the token they were created with", but create_invoice always uses the single default token set at initialize, so there is no way to invoice in another stablecoin. The roadmap lists "multi-stablecoin".

Implementation suggestions

Contract: add an allowlist or token argument validated at create time, with the existing default used when none is given, and tests with two tokens. Web: a token selector, per-token trustline and balance, and symbol and decimals read from the token contract instead of global config. Include migration notes for v1 invoices.

Acceptance criteria

  • An invoice in token A and one in token B can each be created and funded.
  • Formatting uses the right decimals per token.
  • The default-token behaviour is unchanged.

Dependencies / related

Needs discussion (redeploy and ABI change). Best done alongside or after #27-#30 so there is a single contract release. Touches amount parsing from #6 (decimals become per-token).

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.