SHA256
Обновить учёт поддержки, лайки и профиль перед MVP
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { authService } from '../state.js';
|
||||
import { formatStars } from './shine-support-amount.js';
|
||||
|
||||
// Один запрос на канал; только сервер проверяет привязку транзакции к блоку.
|
||||
const cache = new Map();
|
||||
@@ -26,9 +27,6 @@ export function loadVerifiedSupportTotals(selector) {
|
||||
export function formatVerifiedSupportStars(value) {
|
||||
try {
|
||||
const n = BigInt(value);
|
||||
if (n <= 0n) return null;
|
||||
const whole = n / 100n;
|
||||
const fraction = String(n % 100n).padStart(2, '0');
|
||||
return `${whole}.${fraction} ⭐`;
|
||||
return formatStars(n);
|
||||
} catch { return null; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user