Vocabulary fixes

This commit is contained in:
timurgordon
2025-05-05 11:32:09 +03:00
parent a7c0772d9b
commit 2760f00a30
27 changed files with 588 additions and 329 deletions

View File

@@ -83,7 +83,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Mock prices for demonstration
const assetPrices = {
'TFT': 0.5,
'ZAZ': 0.5,
'ZDFZ': 0.5,
'USDT': 1.0
};
@@ -152,11 +152,11 @@ document.addEventListener('DOMContentLoaded', function() {
const token1Label = document.getElementById('token1Label');
const token2Label = document.getElementById('token2Label');
if (selectedOption.value === 'tft-zaz') {
if (selectedOption.value === 'tft-zdfz') {
if (token1Label) token1Label.textContent = 'TFT';
if (token2Label) token2Label.textContent = 'ZAZ';
} else if (selectedOption.value === 'zaz-usdt') {
if (token1Label) token1Label.textContent = 'ZAZ';
if (token2Label) token2Label.textContent = 'ZDFZ';
} else if (selectedOption.value === 'zdfz-usdt') {
if (token1Label) token1Label.textContent = 'ZDFZ';
if (token2Label) token2Label.textContent = 'USDT';
}
@@ -190,7 +190,7 @@ document.addEventListener('DOMContentLoaded', function() {
tftStakingPeriodSelect.addEventListener('change', calculateTftStakingRewards);
}
// ZAZ Staking calculations
// ZDFZ Staking calculations
const zazStakeAmountInput = document.getElementById('zazStakeAmount');
const zazStakingPeriodSelect = document.getElementById('zazStakingPeriod');
const zazEstimatedRewardsElement = document.getElementById('zazEstimatedRewards');
@@ -208,7 +208,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Calculate rewards (simple interest for demonstration)
const rewards = amount * apy * (termDays / 365);
zazEstimatedRewardsElement.textContent = rewards.toFixed(2) + ' ZAZ';
zazEstimatedRewardsElement.textContent = rewards.toFixed(2) + ' ZDFZ';
};
zazStakeAmountInput.addEventListener('input', calculateZazStakingRewards);
@@ -264,13 +264,13 @@ document.addEventListener('DOMContentLoaded', function() {
// Mock token data
const tokenData = {
'TFT': { price: 0.5, balance: '10,000 TFT', usdValue: '5,000.00' },
'ZAZ': { price: 0.5, balance: '5,000 ZAZ', usdValue: '2,500.00' },
'ZDFZ': { price: 0.5, balance: '5,000 ZDFZ', usdValue: '2,500.00' },
'USDT': { price: 1.0, balance: '2,500 USDT', usdValue: '2,500.00' }
};
if (swapFromAmountInput && swapToAmountElement) {
let fromToken = 'TFT';
let toToken = 'ZAZ';
let toToken = 'ZDFZ';
const calculateSwap = () => {
const fromAmount = parseFloat(swapFromAmountInput.value) || 0;