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:
2026-02-07 02:20:04 +03:00
parent c35c538678
commit 67b30daca8
7 changed files with 145 additions and 38 deletions
+4
View File
@@ -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) {