Skip to content

Commit d0a014b

Browse files
committed
style: fix linter formatting for pricing functions
style: fix linter formatting for pricing functions
1 parent 7616600 commit d0a014b

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

service_contracts/src/FilecoinWarmStorageService.sol

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,12 @@ contract FilecoinWarmStorageService is
473473
* @param newCacheMissPrice New cache miss price per TiB per month (0 = no change)
474474
* @param newCdnPrice New CDN price per TiB per month (0 = no change)
475475
*/
476-
function updatePricing(uint256 newStoragePrice, uint256 newCacheMissPrice, uint256 newCdnPrice) external onlyOwner {
477-
require(
478-
newStoragePrice > 0 || newCacheMissPrice > 0 || newCdnPrice > 0,
479-
"At least one price must be non-zero"
480-
);
481-
476+
function updatePricing(uint256 newStoragePrice, uint256 newCacheMissPrice, uint256 newCdnPrice)
477+
external
478+
onlyOwner
479+
{
480+
require(newStoragePrice > 0 || newCacheMissPrice > 0 || newCdnPrice > 0, "At least one price must be non-zero");
481+
482482
if (newStoragePrice > 0) {
483483
STORAGE_PRICE_PER_TIB_PER_MONTH = newStoragePrice;
484484
}
@@ -488,8 +488,10 @@ contract FilecoinWarmStorageService is
488488
if (newCdnPrice > 0) {
489489
CDN_PRICE_PER_TIB_PER_MONTH = newCdnPrice;
490490
}
491-
492-
emit PricingUpdated(STORAGE_PRICE_PER_TIB_PER_MONTH, CACHE_MISS_PRICE_PER_TIB_PER_MONTH, CDN_PRICE_PER_TIB_PER_MONTH);
491+
492+
emit PricingUpdated(
493+
STORAGE_PRICE_PER_TIB_PER_MONTH, CACHE_MISS_PRICE_PER_TIB_PER_MONTH, CDN_PRICE_PER_TIB_PER_MONTH
494+
);
493495
}
494496

495497
/**
@@ -1357,7 +1359,11 @@ contract FilecoinWarmStorageService is
13571359
* @return cacheMissPrice Current cache miss price per TiB per month
13581360
* @return cdnPrice Current CDN price per TiB per month
13591361
*/
1360-
function getCurrentPricingRates() external view returns (uint256 storagePrice, uint256 cacheMissPrice, uint256 cdnPrice) {
1362+
function getCurrentPricingRates()
1363+
external
1364+
view
1365+
returns (uint256 storagePrice, uint256 cacheMissPrice, uint256 cdnPrice)
1366+
{
13611367
return (STORAGE_PRICE_PER_TIB_PER_MONTH, CACHE_MISS_PRICE_PER_TIB_PER_MONTH, CDN_PRICE_PER_TIB_PER_MONTH);
13621368
}
13631369

0 commit comments

Comments
 (0)