pub fn convert_to_shares_ceil_bounded(
state: &VaultState,
config: &VaultConfig,
assets: u128,
cap: u128,
error: InvalidStateCode,
) -> Result<u128, KernelError>Expand description
Convert assets to shares with ceil rounding and reject quotients above the operation’s cap.