enable more advanced cost calculation

This commit is contained in:
Bryan Stitt 2023-06-16 23:55:41 -07:00
parent ba67151706
commit 8ffd7d2e1b

@ -899,10 +899,8 @@ impl RpcQueryStats {
} }
} }
// for now, always return a flat cost // TODO: finalize cost calculation
Decimal::from_str("0.000018").unwrap()
/*
// TODO: get cost_minimum, cost_free_bytes, cost_per_byte, cache_hit_divisor from config. each chain will be different // TODO: get cost_minimum, cost_free_bytes, cost_per_byte, cache_hit_divisor from config. each chain will be different
// pays at least $0.000018 / credits per request // pays at least $0.000018 / credits per request
let cost_minimum = Decimal::new(18, 6); let cost_minimum = Decimal::new(18, 6);
@ -927,6 +925,5 @@ impl RpcQueryStats {
} }
cost cost
*/
} }
} }