Function convert_to_shares_ceil

Source
pub fn convert_to_shares_ceil(
    state: &VaultState,
    config: &VaultConfig,
    assets: u128,
) -> u128
Expand description

Convert an asset amount to shares (ceil rounding — more shares, favors user).

Used by ERC-4626 preview_withdraw to compute shares burned (rounds against user).