fix: Replace LRNBalanceWidget mock data with real LearnToken contract calls #209#467
Merged
Anuoluwapo25 merged 2 commits intobakeronchain:mainfrom Mar 31, 2026
Merged
Conversation
… calls - Remove hardcoded mock values (mockBalance, mockPrev, mockPercentile) - Remove artificial setTimeout loading simulation - Integrate real useLearnToken hook with LearnToken contract balance() calls - Add balance history tracking with localStorage persistence - Implement percentile calculation based on actual balance - Add proper loading and error handling for contract interactions Fixes bakeronchain#209
|
@Nanle-code Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
please reslove conflict |
chonilius
pushed a commit
to chonilius/learnvault
that referenced
this pull request
Apr 24, 2026
fix: Replace LRNBalanceWidget mock data with real LearnToken contract calls bakeronchain#209
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR replaces the hardcoded mock data in LRNBalanceWidget with real LearnToken contract calls, resolving issue #209.
What Changed
mockBalance = 142,mockPrev = 122, andmockPercentile = 8Technical Details
Files Modified
Testing
Issue Resolution
Fixes #209: "LRNBalanceWidget: replace hardcoded mock data with real LearnToken contract call"
Dependencies
initializefunction #96, Implement LearnTokenmintwith event emission #97)