Function convert_to_withdraw_shares_ceil_bounded

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

Convert withdrawal assets to shares without consuming remaining holders’ backing.