Function pallet_pool_system::pallet::dispatchables::close_epoch
source · pub fn close_epoch<T: Config>(pool_id: T::PoolId)
Expand description
Close the current epoch
Closing an epoch locks in all invest and redeem orders placed during the epoch, and causes all further invest and redeem orders to be set for the next epoch.
If all orders can be executed without violating any
pool constraints - which include maximum reserve and
the tranche risk buffers - the execution will also be
done. See execute_epoch
for details on epoch
execution.
If pool constraints would be violated by executing all
orders, the pool enters a submission period. During a
submission period, partial executions can be submitted
to be scored, and the best-scoring solution will
eventually be executed. See submit_solution
.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::close_epoch
.