SHA256
Обновить учёт поддержки, лайки и профиль перед MVP
This commit is contained in:
@@ -4,7 +4,7 @@ import { readShineUserPda, supportShineUserOnSolana, supportShineDaoOnSolana } f
|
||||
import { loadEncryptedUserSecrets } from '../services/key-vault.js';
|
||||
import { getWalletFromStoredBlockchainKey, transferSolLamports, solanaAddressFromPublicKeyBase64 } from '../services/solana-wallet-service.js';
|
||||
import { bytesToBase58 } from '../services/crypto-utils.js';
|
||||
import { parseStarCents, formatStars, splitStarCents, starCentsToLamports, formatLamportsSol } from '../services/shine-support-amount.js';
|
||||
import { parseStarCents, formatStars, formatExactStars, splitStarCents, starCentsToLamports, formatLamportsSol } from '../services/shine-support-amount.js';
|
||||
import { toUserMessage } from '../services/ui-error-texts.js';
|
||||
import { getStarsQuoteFromRpc } from '../services/shine-stars-pyth.js';
|
||||
|
||||
@@ -34,7 +34,7 @@ export function openShineSupportDialog({ recipientLogin = '', target = { type: 0
|
||||
input.type = 'text';
|
||||
input.inputMode = 'decimal';
|
||||
input.autocomplete = 'off';
|
||||
input.placeholder = '0.10';
|
||||
input.placeholder = '0.1';
|
||||
const details = document.createElement('p');
|
||||
details.className = 'meta-muted';
|
||||
const status = document.createElement('p');
|
||||
@@ -69,8 +69,8 @@ export function openShineSupportDialog({ recipientLogin = '', target = { type: 0
|
||||
const split = splitStarCents(cents);
|
||||
const sol = quote ? ` · ≈ ${formatLamportsSol(starCentsToLamports(cents, quote.solUsdE8, quote.usdtUsdE8))} SOL` : '';
|
||||
details.textContent = dao ? `${formatStars(cents)}${sol}` :
|
||||
`${t('screens.support_phase2.recipient')}: ${formatStars(split.author)} · ${t('screens.support_phase2.fund')}: ${formatStars(split.dao)}${sol}`;
|
||||
} catch { details.textContent = 'Минимум 0,10 ⭐'; }
|
||||
`${t('screens.support_phase2.recipient')}: ${formatExactStars(split.author)} · ${t('screens.support_phase2.fund')}: ${formatExactStars(split.dao)}${sol}`;
|
||||
} catch { details.textContent = 'Минимум 0,1 ⭐'; }
|
||||
};
|
||||
input.addEventListener('input', update);
|
||||
amountLabel.textContent = 'Сумма поддержки, ⭐';
|
||||
|
||||
Reference in New Issue
Block a user