feat: rename TFP to MC currency in dashboard UI and pools functionality

This commit is contained in:
mik-tf
2025-09-08 13:14:47 -04:00
parent 867d418ea7
commit 1c55ac0af3
4 changed files with 31 additions and 31 deletions

View File

@@ -1628,7 +1628,7 @@ impl DashboardController {
let price_per_hour = slice_data.get("price_hour")
.and_then(|v| v.as_f64())
.map(|p| rust_decimal::Decimal::from_f64_retain(p).unwrap_or(rust_decimal::Decimal::new(50, 2)))
.unwrap_or(rust_decimal::Decimal::new(50, 2)); // Fallback to 0.50 TFC/hour only if no price provided
.unwrap_or(rust_decimal::Decimal::new(50, 2)); // Fallback to 0.50 MC/hour only if no price provided
// Load user data to get resource_provider name
let user = Self::load_user_with_persistent_data(&session);