pub trait EpochTransitionHook {
    type Balance;
    type PoolId;
    type Time;
    type Error;

    // Required methods
    fn on_closing_mutate_reserve(
        pool_id: Self::PoolId,
        assets_under_management: Self::Balance,
        reserve: &mut Self::Balance
    ) -> Result<(), Self::Error>;
    fn on_execution_pre_fulfillments(
        pool_id: Self::PoolId
    ) -> Result<(), Self::Error>;
}
Expand description

Trait to signal an epoch transition.

Required Associated Types§

Required Methods§

source

fn on_closing_mutate_reserve( pool_id: Self::PoolId, assets_under_management: Self::Balance, reserve: &mut Self::Balance ) -> Result<(), Self::Error>

Hook into the closing of an epoch

source

fn on_execution_pre_fulfillments( pool_id: Self::PoolId ) -> Result<(), Self::Error>

Hook into the execution of an epoch before any investment and redemption fulfillments

Object Safety§

This trait is not object safe.

Implementors§