add roostock fees

This commit is contained in:
Blake Kaufman
2026-07-26 12:51:45 -04:00
parent f0b68fafae
commit 7e8bacd06b
9 changed files with 29 additions and 63 deletions
@@ -2,74 +2,26 @@ import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native';
import { ThemeText } from '../../../../functions/CustomElements';
import { useGlobalThemeContext } from '../../../../../context-store/theme';
import GetThemeColors from '../../../../hooks/themeColors';
import { useMemo, useState } from 'react';
import { CENTER, COLORS, ICONS, SIZES } from '../../../../constants';
import { INSET_WINDOW_WIDTH } from '../../../../constants/theme';
import { useGlobalContextProvider } from '../../../../../context-store/context';
import { useTranslation } from 'react-i18next';
import { useSparkWallet } from '../../../../../context-store/sparkContext';
import { useFlashnet } from '../../../../../context-store/flashnetContext';
import { formatBalanceAmount } from '../../../../functions';
import openWebBrowser from '../../../../functions/openWebBrowser';
import ThemeImage from '../../../../functions/CustomElements/themeImage';
import ThemeIcon from '../../../../functions/CustomElements/themeIcon';
export default function BlitzFeeInformation() {
const { showTokensInformation } = useSparkWallet();
const { masterInfoObject } = useGlobalContextProvider();
const { theme, darkModeType } = useGlobalThemeContext();
const { textColor, backgroundOffset, backgroundColor } = GetThemeColors();
const [paymentType, setPaymentType] = useState('lightning');
const { t } = useTranslation();
const feeOptions = showTokensInformation
? ['lightning', 'spark', 'bitcoin', 'tokens']
: ['lightning', 'spark', 'bitcoin'];
const timeFrameElements = useMemo(() => {
return feeOptions.map(item => {
return (
<TouchableOpacity
key={item}
onPress={() => setPaymentType(item)}
style={{
backgroundColor:
item === paymentType
? theme && darkModeType
? COLORS.darkModeText
: COLORS.primary
: 'transparent',
borderColor:
theme && darkModeType ? COLORS.darkModeText : COLORS.primary,
...styles.timeFrameElement,
}}
>
<ThemeText
styles={{
color:
item === paymentType
? theme && darkModeType
? COLORS.lightModeText
: COLORS.darkModeText
: textColor,
...styles.timeFrameElementText,
}}
content={item}
/>
</TouchableOpacity>
);
});
}, [paymentType, textColor, theme, darkModeType, feeOptions]);
return (
<ScrollView
showsVerticalScrollIndicator={false}
contentContainerStyle={{
paddingTop: 20,
alignItems: 'center',
width: INSET_WINDOW_WIDTH,
...CENTER,
}}
contentContainerStyle={styles.feeContainer}
>
<ThemeText
styles={{ textAlign: 'center', marginBottom: 30 }}
@@ -134,22 +86,10 @@ export default function BlitzFeeInformation() {
}
function FeeTable({ masterInfoObject }) {
const { poolInfoRef } = useFlashnet();
const { backgroundOffset, textColor } = GetThemeColors();
const { backgroundOffset } = GetThemeColors();
const { t } = useTranslation();
const feeData = [
// {
// transactionType: t('settings.feeInformation.swapsType'),
// fee: t('settings.feeInformation.swapsFee', {
// poolFee: formatBalanceAmount(
// poolInfoRef.lpFeeBps / 100,
// false,
// masterInfoObject,
// ),
// blitzFee: 1,
// }),
// },
{
transactionType: t('settings.feeInformation.sparkSwapType'),
fee: t('settings.feeInformation.swapsFee', {
@@ -165,6 +105,10 @@ function FeeTable({ masterInfoObject }) {
transactionType: t('settings.feeInformation.liquid'),
fee: t('settings.feeInformation.liquidFee'),
},
{
transactionType: t('settings.feeInformation.rootstock'),
fee: t('settings.feeInformation.rootstockFee'),
},
{
transactionType: t('settings.feeInformation.accumulationType'),
fee: t('settings.feeInformation.accumulationFee'),
@@ -221,6 +165,12 @@ function FeeTable({ masterInfoObject }) {
}
const styles = StyleSheet.create({
feeContainer: {
paddingTop: 20,
alignItems: 'center',
width: INSET_WINDOW_WIDTH,
...CENTER,
},
contentContainer: {
width: '100%',
paddingVertical: 5,
+2
View File
@@ -1844,6 +1844,8 @@
"chainSwapFee": "0,5 % Blitz-Gebühr + 0,1 % Plattformgebühr",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5 % Blitz-Gebühr + Netzwerkgebühren",
"roostock": "Rootstock <> BTC",
"rootstockFee": "0,1 % Boltz-Gebühr + Netzwerkgebühren",
"accumulationType": "Akkumulationsadressen",
"accumulationFee": "0,5 % Blitz-Gebühr + 0,5 % Plattformgebühr",
"othersType": "Alle anderen",
+2
View File
@@ -1844,6 +1844,8 @@
"chainSwapFee": "0.5% Blitz fee + 0.1%+ Flashnet fee",
"liquid": "Liquid <> BTC",
"liquidFee": "0.5% Blitz fee + network fees",
"rootstock": "Rootstock <> BTC",
"rootstockFee": "0.1% Boltz fee + network fees",
"accumulationType": "Accumulation addresses",
"accumulationFee": "0.5% Blitz fee + 0.5% Flashnet fee",
"othersType": "All other",
+2
View File
@@ -1854,6 +1854,8 @@
"chainSwapFee": "0,5 % de comisión de Blitz + 0,1 %+ de comisión de plataforma",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5 % de comisión de Blitz + comisiones de red",
"roostock": "Roostock <> BTC",
"roostockFee": "0,1 % de comisión de Boltz + comisiones de red",
"accumulationType": "Direcciones de acumulación",
"accumulationFee": "0,5 % de comisión de Blitz + 0,5 % de comisión de plataforma",
"othersType": "Otros",
+2
View File
@@ -1857,6 +1857,8 @@
"chainSwapFee": "0,5 % de frais Blitz + 0,1 %+ de frais de plateforme",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5 % de frais Blitz + frais de réseau",
"roostock": "Rootstock <> BTC",
"rootstockFee": "0,1 % de frais Boltz + frais de réseau",
"accumulationType": "Adresses d'accumulation",
"accumulationFee": "0,5 % de frais Blitz + 0,5 % de frais de plateforme",
"othersType": "Autres",
+2
View File
@@ -1857,6 +1857,8 @@
"chainSwapFee": "0,5% commissione Blitz + 0,1%+ commissione piattaforma",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5% commissione Blitz + commissioni di rete",
"roostock": "Rootstock <> BTC",
"roostockFee": "0,1% commissione Boltz + commissioni di rete",
"accumulationType": "Indirizzi di accumulo",
"accumulationFee": "0,5% commissione Blitz + 0,5% commissione piattaforma",
"othersType": "Altro",
+2
View File
@@ -1857,6 +1857,8 @@
"chainSwapFee": "0,5% de taxa da Blitz Wallet + 0,1%+ de taxa da Flashnet",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5% de taxa da Blitz Wallet + taxas de rede",
"roostock": "Rootstock <> BTC",
"roostockFee": "0,1% de taxa da Boltz + taxas de rede",
"accumulationType": "Conversão automática",
"accumulationFee": "0,5% de taxa da Blitz Wallet + 0,5% de taxa da Flashnet",
"othersType": "Outros",
+2
View File
@@ -1858,6 +1858,8 @@
"chainSwapFee": "0,5% комиссия Blitz + 0,1%+ комиссия платформы",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5% комиссия Blitz + сетевые комиссии",
"roostock": "Roostock <> BTC",
"roostockFee": "0,1% комиссия Boltz + сетевые комиссии",
"accumulationType": "Адреса накопления",
"accumulationFee": "0,5% комиссия Blitz + 0,5% комиссия платформы",
"othersType": "Остальное",
+2
View File
@@ -1857,6 +1857,8 @@
"chainSwapFee": "0,5 % Blitz-avgift + 0,1 %+ plattformsavgift",
"liquid": "Liquid <> BTC",
"liquidFee": "0,5 % Blitz-avgift + nätverksavgifter",
"roostock": "Roostock <> BTC",
"roostockFee": "0,1 % Boltz-avgift + nätverksavgifter",
"accumulationType": "Ackumuleringsadresser",
"accumulationFee": "0,5 % Blitz-avgift + 0,5 % plattformsavgift",
"othersType": "Övrigt",