Expand description
Kernel action dispatch for vault state transitions.
This module defines the public KernelAction enum and a dispatcher that
applies actions to VaultState and returns effects.
Structs§
- Effective
Totals - Effective totals after applying virtual share/asset offsets.
- Idle
Payout Plan - Planned payout details for satisfying a queued withdrawal from idle assets.
- Kernel
Result - Result of applying a kernel action.
Enums§
- Atomic
Payout Kind - Kernel
Action - Kernel actions supported by the dispatcher.
- Payout
Outcome - Outcome for payout settlement.
Functions§
- apply_
action - Apply a kernel action to state, returning updated state and effects.
- convert_
to_ assets - Convert a share amount to assets (floor rounding — fewer assets, favors vault).
- convert_
to_ assets_ ceil - Convert a share amount to assets (ceil rounding — more assets, favors user).
- convert_
to_ shares - Convert an asset amount to shares (floor rounding — fewer shares, favors vault).
- convert_
to_ shares_ ceil - Convert an asset amount to shares (ceil rounding — more shares, favors user).
- effective_
totals - Compute effective totals including virtual shares/assets for conversion math.
- plan_
idle_ payout - Plan an idle-funded payout from the current vault state.
- preview_
deposit_ shares - Preview the shares minted for a deposit of
assetsusing kernel conversions. - preview_
withdraw_ assets - Preview the assets redeemed for
sharesusing kernel conversions.