@@ -910,11 +910,11 @@ contract FilecoinWarmStorageServiceTest is MockFVMTest {
910910 FilecoinWarmStorageService.ServicePricing memory pricing = pdpServiceWithPayments.getServicePrice ();
911911
912912 uint256 decimals = 6 ; // MockUSDFC uses 6 decimals in tests
913- uint256 expectedNoCDN = 5 * 10 ** decimals; // 5 USDFC with 6 decimals
914- uint256 expectedWithCDN = 55 * 10 ** ( decimals - 1 ) ; // 5.5 USDFC with 6 decimals
913+ uint256 expectedNoCDN = 25 * 10 ** ( decimals - 1 ) ; // 2. 5 USDFC with 6 decimals
914+ uint256 expectedWithCDN = 3 * 10 ** decimals; // 3 USDFC with 6 decimals (2.5 + 0.5 CDN)
915915
916- assertEq (pricing.pricePerTiBPerMonthNoCDN, expectedNoCDN, "No CDN price should be 5 * 10^decimals " );
917- assertEq (pricing.pricePerTiBPerMonthWithCDN, expectedWithCDN, "With CDN price should be 5.5 * 10^decimals " );
916+ assertEq (pricing.pricePerTiBPerMonthNoCDN, expectedNoCDN, "No CDN price should be 2. 5 * 10^decimals " );
917+ assertEq (pricing.pricePerTiBPerMonthWithCDN, expectedWithCDN, "With CDN price should be 3 * 10^decimals " );
918918 assertEq (address (pricing.tokenAddress), address (mockUSDFC), "Token address should match USDFC " );
919919 assertEq (pricing.epochsPerMonth, 86400 , "Epochs per month should be 86400 " );
920920
@@ -928,16 +928,16 @@ contract FilecoinWarmStorageServiceTest is MockFVMTest {
928928 (uint256 serviceFee , uint256 spPayment ) = pdpServiceWithPayments.getEffectiveRates ();
929929
930930 uint256 decimals = 6 ; // MockUSDFC uses 6 decimals in tests
931- // Total is 5 USDFC with 6 decimals
932- uint256 expectedTotal = 5 * 10 ** decimals;
931+ // Total is 2. 5 USDFC with 6 decimals
932+ uint256 expectedTotal = 25 * 10 ** ( decimals - 1 ) ;
933933
934934 // Test setup uses 0% commission
935935 uint256 expectedServiceFee = 0 ; // 0% commission
936936 uint256 expectedSpPayment = expectedTotal; // 100% goes to SP
937937
938938 assertEq (serviceFee, expectedServiceFee, "Service fee should be 0 with 0% commission " );
939- assertEq (spPayment, expectedSpPayment, "SP payment should be 5 * 10^6 " );
940- assertEq (serviceFee + spPayment, expectedTotal, "Total should equal 5 * 10^6 " );
939+ assertEq (spPayment, expectedSpPayment, "SP payment should be 2. 5 * 10^6 " );
940+ assertEq (serviceFee + spPayment, expectedTotal, "Total should equal 2. 5 * 10^6 " );
941941
942942 // Verify the values are in expected range
943943 assert (serviceFee + spPayment < 10 ** 8 ); // Less than 10^8
0 commit comments