chore(spl): "SPL" -> "SOL" (we use both SPL and Token-2022 SOL tokens)
What changed, and why it matters
This commit only renames user-facing labels and code comments from 'SPL' to 'SOL' to reflect that the wallet supports both older SPL and newer Token-2022 Solana tokens. No program logic, calculations, network calls, or security behavior was changed.
No security action needed; this is a non-functional terminology cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A pure string refactor across six Dart files: comment blocks, an enum comment, UI titles, a code comment in fee estimation, a doc comment for CoinGecko price fetching, and a formatting comment. Identifiers such as enum names (TransactionSubType.splToken), class names (SplToken), and API paths remain unchanged. There are no functional modifications.
Changed components
lib/db/isar/main_db.dartlib/models/isar/models/blockchain_data/transaction.dartlib/pages/add_wallet_views/add_token_view/add_custom_solana_token_view.dartlib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dartlib/services/price.dartlib/utilities/amount/amount_unit.dartInspect captured patch +7 / −7
diff --git a/lib/db/isar/main_db.dart b/lib/db/isar/main_db.dart
index a593647..a3a18a7 100644
--- a/lib/db/isar/main_db.dart
+++ b/lib/db/isar/main_db.dart
@@ -626,7 +626,7 @@ class MainDB {
// ========== Solana =========================================================
- // Solana (SPL) tokens.
+ // Solana tokens.
QueryBuilder<SplToken, SplToken, QWhere> getSplTokens() =>
isar.splTokens.where();
diff --git a/lib/models/isar/models/blockchain_data/transaction.dart b/lib/models/isar/models/blockchain_data/transaction.dart
index 07b4b91..a4c808b 100644
--- a/lib/models/isar/models/blockchain_data/transaction.dart
+++ b/lib/models/isar/models/blockchain_data/transaction.dart
@@ -261,5 +261,5 @@ enum TransactionSubType {
sparkSpend, // firo specific
ordinal,
mweb,
- splToken, // Solana token (SPL).
+ splToken, // Solana token.
}
diff --git a/lib/pages/add_wallet_views/add_token_view/add_custom_solana_token_view.dart b/lib/pages/add_wallet_views/add_token_view/add_custom_solana_token_view.dart
index c99816d..ab23228 100644
--- a/lib/pages/add_wallet_views/add_token_view/add_custom_solana_token_view.dart
+++ b/lib/pages/add_wallet_views/add_token_view/add_custom_solana_token_view.dart
@@ -336,7 +336,7 @@ class _AddCustomSolanaTokenViewState
Padding(
padding: const EdgeInsets.only(left: 32),
child: Text(
- "Add custom SPL token",
+ "Add custom SOL token",
style: STextStyles.desktopH3(context),
),
),
@@ -360,7 +360,7 @@ class _AddCustomSolanaTokenViewState
children: [
if (!isDesktop)
Text(
- "Add custom SPL token",
+ "Add custom SOL token",
style: STextStyles.pageTitleH1(context),
),
if (!isDesktop) const SizedBox(height: 16),
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
index f677504..0b93775 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
@@ -212,7 +212,7 @@ class _DesktopSendFeeFormState extends ConsumerState<DesktopSendFeeForm> {
.estimateFeeFor(amount, feeRate);
}
} else {
- // Token fee estimation (works for ERC20 and SPL tokens).
+ // Token fee estimation (works for ERC20 and SOL tokens).
try {
final tokenWallet = ref.read(
pCurrentTokenWallet,
diff --git a/lib/services/price.dart b/lib/services/price.dart
index eed74f7..abf4779 100644
--- a/lib/services/price.dart
+++ b/lib/services/price.dart
@@ -301,7 +301,7 @@ class PriceAPI {
}
}
- /// Get prices and 24h change for Solana SPL tokens.
+ /// Get prices and 24h change for Solana SOL tokens.
///
/// Uses CoinGecko API to fetch prices for tokens by their Solana mint addresses.
/// Format: GET /api/v3/simple/token_price/solana?vs_currencies=usd&contract_addresses=mint1,mint2&include_24hr_change=true
diff --git a/lib/utilities/amount/amount_unit.dart b/lib/utilities/amount/amount_unit.dart
index 2ddfe83..2b320ab 100644
--- a/lib/utilities/amount/amount_unit.dart
+++ b/lib/utilities/amount/amount_unit.dart
@@ -192,7 +192,7 @@ extension AmountUnitExt on AmountUnit {
case AmountUnit.yocto:
case AmountUnit.ronto:
case AmountUnit.quecto:
- // For SPL tokens, just use the symbol with the prefix if applicable.
+ // For SOL tokens, just use the symbol with the prefix if applicable.
return token.symbol;
}
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.