diff --git a/components/ProviderList.tsx b/components/ProviderList.tsx index c901dc0..8391ac3 100644 --- a/components/ProviderList.tsx +++ b/components/ProviderList.tsx @@ -237,16 +237,14 @@ export const ProviderList = ({ endpoint, initialData, enableShowingOfflineNodes Total Earnings - CPU/h - - - Env/h + Monthly cost USD + - Start price + Monthly cost GLM @@ -314,6 +312,15 @@ export const ProviderList = ({ endpoint, initialData, enableShowingOfflineNodes v{provider.version} + {provider.runtimes.vm?.is_overpriced ? ( + + Overpriced + + ) : provider.runtimes.vm?.cheaper_than ? ( + + Great Price + + ) : null} @@ -358,24 +365,13 @@ export const ProviderList = ({ endpoint, initialData, enableShowingOfflineNodes - {priceHashMapOrDefault(provider, "golem.usage.cpu_sec")}{" "} - GLM + {RoundingFunction(provider.runtimes.vm?.monthly_price_usd)}{" "} + $ - {priceHashMapOrDefault(provider, "golem.usage.duration_sec")}{" "} - GLM - - - - - { - ( - provider.runtimes.vm?.properties["golem.com.pricing.model.linear.coeffs"] || - provider.runtimes.wasmtime.properties["golem.com.pricing.model.linear.coeffs"] - ).slice(-1)[0] - }{" "} + {RoundingFunction(provider.runtimes.vm?.monthly_price_glm)}{" "} GLM diff --git a/pages/network/provider/[node_id].tsx b/pages/network/provider/[node_id].tsx index a0b7a42..e5087f3 100644 --- a/pages/network/provider/[node_id].tsx +++ b/pages/network/provider/[node_id].tsx @@ -131,6 +131,7 @@ export const ProviderDetailed = ({ initialData, initialIncome }: { initialData: v{nodeData[0].version} +
{nodeData[0].computing_now ? ( @@ -142,6 +143,19 @@ export const ProviderDetailed = ({ initialData, initialIncome }: { initialData: )}
+ {nodeData[0].runtimes.vm?.is_overpriced ? ( +
+ + Overpriced + +
+ ) : nodeData[0].runtimes.vm?.cheaper_than ? ( +
+ + Great Price + +
+ ) : null} @@ -151,6 +165,33 @@ export const ProviderDetailed = ({ initialData, initialIncome }: { initialData: {nodeData[0].runtimes.vm?.properties["golem.inf.cpu.brand"]}

) : null} + {nodeData[0].runtimes.vm?.is_overpriced ? ( +

+ Comparing this node against an AWS {nodeData[0].runtimes.vm?.overpriced_compared_to.name} instance with{" "} + {nodeData[0].runtimes.vm?.overpriced_compared_to.vcpu} cores and{" "} + {nodeData[0].runtimes.vm?.overpriced_compared_to.memory} GB memory shows that +

+ this provider is most likely overpriced. We suggest configuring a pricing setting of: CPU/h 0 GLM, Env/h{" "} + {nodeData[0].runtimes.vm?.suggest_env_per_hour_price} GLM, Start 0 GLM.

which equals the + Monthly USD price (${nodeData[0].runtimes.vm?.overpriced_compared_to.price_usd * 730}) of the{" "} + {nodeData[0].runtimes.vm?.overpriced_compared_to.name} instance +

+

This nodes monthly USD cost is ${nodeData[0].runtimes.vm?.monthly_price_usd} which is roughly{" "} + {RoundingFunction(nodeData[0].runtimes.vm?.times_more_expensive)} times more expensive compared to AWS +

+ ) : nodeData[0].runtimes.vm?.cheaper_than ? ( +

+ Comparing this node against an AWS {nodeData[0].runtimes.vm?.cheaper_than.name} instance with{" "} + {nodeData[0].runtimes.vm?.cheaper_than.vcpu} cores and {nodeData[0].runtimes.vm?.cheaper_than.memory} GB + memory shows that +

+ this provider is more cost-effective. The Monthly USD price of the AWS{" "} + {nodeData[0].runtimes.vm?.cheaper_than.name} instance is $( + {nodeData[0].runtimes.vm?.cheaper_than.price_usd * 730}).

+

This node's monthly USD cost is ${nodeData[0].runtimes.vm?.monthly_price_usd}, which is roughly{" "} + {RoundingFunction(nodeData[0].runtimes.vm?.times_cheaper)} times cheaper compared to AWS. +

+ ) : null}