Function convert_to_assets_ceil_bounded

Source
pub fn convert_to_assets_ceil_bounded(
    state: &VaultState,
    config: &VaultConfig,
    shares: u128,
    cap: u128,
    error: InvalidStateCode,
) -> Result<u128, KernelError>
Expand description

Convert shares to assets with ceil rounding and reject quotients above the operation’s cap.