Function melstf::preseal_melmint
source · pub fn preseal_melmint<C: ContentAddrStore>(
state: UnsealedState<C>
) -> UnsealedState<C>
Expand description
Presealing function that is called before a state is sealed to apply melmint actions.
Internally, this prepares the given state for sealing:
- create built-in nonzero liquidity pools if they don’t exist already
- process any swap, deposit, or withdrawal requests for the state’s pools. This consists of finding a subset of transactions and pools and applying swaps on them as needed.
- process pegging for MEL. This includes some nudging of inflation rates, etc. More details can be found in the specifications.