10% community upkeep fee with explanations throughout

This commit is contained in:
jackiettran
2025-11-07 15:51:32 -05:00
parent e20e33a0f6
commit de32b68ec4
8 changed files with 420 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
class FeeCalculator {
static calculateRentalFees(totalAmount) {
const platformFeeRate = 0.2;
const platformFeeRate = 0.1;
const platformFee = totalAmount * platformFeeRate;
@@ -15,7 +15,7 @@ class FeeCalculator {
static formatFeesForDisplay(fees) {
return {
totalAmount: `$${fees.totalAmount.toFixed(2)}`,
platformFee: `$${fees.platformFee.toFixed(2)} (20%)`,
platformFee: `$${fees.platformFee.toFixed(2)} (10%)`,
totalCharge: `$${fees.totalChargedAmount.toFixed(2)}`,
ownerPayout: `$${fees.payoutAmount.toFixed(2)}`,
};