-
Notifications
You must be signed in to change notification settings - Fork 16
fix: change CDN pricing from monthly to usage-based egress model #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Replace monthly CDN subscription pricing with per-TiB egress rates - Remove automatic CDN payment rail updates when storage size changes - Update ServicePricing struct to reflect usage-based pricing model - Refactor calculateRatesPerEpoch to only handle storage rates BREAKING CHANGE: ServicePricing API changed - pricePerTiBPerMonthWithCDN replaced with pricePerTiBCdnEgress and pricePerTiBCacheMissEgress fields
regarding the PR title: I think this is a fix and not a refactor |
Should I also ammend the commit and rename the branch? WDYT? |
uint256 private immutable CACHE_MISS_PRICE_PER_TIB_PER_MONTH; // .5 USDFC per TiB per month for CDN with correct decimals | ||
uint256 private immutable CDN_PRICE_PER_TIB_PER_MONTH; // .5 USDFC per TiB per month for CDN with correct decimals | ||
uint256 private immutable CDN_EGRESS_PRICE_PER_TIB; // 7 USDFC per TiB of CDN egress | ||
uint256 private immutable CACHE_MISS_EGRESS_PRICE_PER_TIB; // 7 USDFC per TiB of cache miss egress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these too low? AWS egress seems to charge about 10x higher. Does this align with your own costs?
BREAKING CHANGE:
ServicePricing
API changed -pricePerTiBPerMonthWithCDN
replaced withpricePerTiBCdnEgress
andpricePerTiBCacheMissEgress
fieldsCloses #323