Bug: Missing import causes `calculateFutureScPrice` to fail at runtime

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

@Rav1Chauhan ya está trabajando en esto.

Desde el 23/2/2026.

  • #86 de @Rav1Chauhan — abierto

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
javascript

Línea de trabajo

Read djed-sdk/src/djed/stableCoin.js and compare its imports with djed.js and system.js, as the issue suggests. Confirm the missing helper is imported from ../helpers.js, then invoke calculateFutureScPrice with valid parameters and verify it returns a price without a ReferenceError.

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

Descripción

Description

The calculateFutureScPrice function in djed-sdk/src/djed/stableCoin.js references a helper function that is not imported in the file. This causes a ReferenceError at runtime when the function is invoked.

Steps to Reproduce
  1. Import calculateFutureScPrice from the djed-sdk
  2. Call the function with valid parameters
  3. Observe ReferenceError being thrown
Expected Behavior

The function should execute successfully and return the calculated future stablecoin price.

Actual Behavior

The function throws a ReferenceError because a required helper function is not in scope.

Proposed Solution

Update the import statement in stableCoin.js to include the missing helper function from ../helpers.js, consistent with how other files in the same directory (like djed.js and system.js) handle their imports.

@Zahnentferner please assign this issue to me! would love to solve this issue!!

Lenguaje dominante
JavaScript
Estrellas
16
Forks
29
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 StabilityNexus/StablePay

Todos los issues de StabilityNexus/StablePay

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.