-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let markets open their pools when they start (#711)
* Add `PoolStatus::Open` * Fix benchmark * Add new pool status `Initialized` * Fix benchmark * Fix `types.json` * Update zrml/swaps/src/lib.rs Co-authored-by: Chralt <chralt98@gmail.com> * Update zrml/swaps/src/tests.rs Co-authored-by: Chralt <chralt98@gmail.com> * Extend pool parameters checks * Fix status errors * Add scaffold for auto-opening markets * Add tests for auto open * Fix tests, implement changes * Reorganize hooks * Fix chain stall and reorganize tests * Fix tests * Compensate timestamp lag in `on_initialize` * Update changelog * Replace integer arithmetic with saturating ops * Add basic storage migration * Add basic storage migration * Add missing file * Remove TODO * `cargo fmt` * Move block check outside of `with_transaction` * Limit bounded vector size * Reduce size of close caches * Abstract open/close manager into status manager * Remove `on_market_open` * Reduce size of report/dispute caches * Apply suggestions from code review Co-authored-by: Chralt <chralt98@gmail.com> * Fix `total_weight` calculation * Add `CacheSize` abstraction * Improve code quality using `filter` * Reduce indentation Co-authored-by: Chralt <chralt98@gmail.com>
- Loading branch information
1 parent
b00d69f
commit dffd0e9
Showing
7 changed files
with
881 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.