-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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
- Import
calculateFutureScPricefrom the djed-sdk - Call the function with valid parameters
- Observe
ReferenceErrorbeing 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!!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels