Function fake_exponential
pub fn fake_exponential(factor: u64, numerator: u64, denominator: u64) -> u128
Expand description
Approximates factor * e ** (numerator / denominator)
using Taylor expansion.
This is used to calculate the blob price.
See also the EIP-4844 helpers
(fake_exponential
).
ยงPanics
This function panics if denominator
is zero.