use anyhow::Context as _;
use fvm_shared::sys;
use super::Context;
use crate::kernel::{ClassifyResult, Kernel, Result};
pub fn base_fee(context: Context<'_, impl Kernel>) -> Result<sys::TokenAmount> {
context
.kernel
.network_base_fee()
.try_into()
.context("base-fee exceeds u128 limit")
.or_fatal()
}
pub fn total_fil_circ_supply(context: Context<'_, impl Kernel>) -> Result<sys::TokenAmount> {
context
.kernel
.total_fil_circ_supply()?
.try_into()
.context("circulating supply exceeds u128 limit")
.or_fatal()
}