mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-07-25 02:55:41 +00:00
fix: tiki score, staking lookup, LP balance, teleport, DOT swap
- Fix tiki: use userTikis storage instead of userRoles - Add tiki name to score mapping (welati=10, serok=50, etc) - Improve staking ledger lookup with debug logging - Fix LP balance fetching using poolId directly - Change teleport placeholder from 0.5 to empty - Add DOT token to swap list with 10 decimals
This commit is contained in:
@@ -101,12 +101,16 @@ export function RewardsSection() {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('[Scores] Fetching scores for', address);
|
||||
console.log('[Scores] API connected:', !!api, 'People API:', !!peopleApi);
|
||||
|
||||
setScoresLoading(true);
|
||||
try {
|
||||
const [scores, staking] = await Promise.all([
|
||||
getAllScoresWithFallback(peopleApi, api, address),
|
||||
api ? getFrontendStakingScore(api, address) : Promise.resolve(null),
|
||||
]);
|
||||
console.log('[Scores] Results:', { scores, staking });
|
||||
setUserScores(scores);
|
||||
setStakingDetails(staking);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user