Commit 3d9bbff
Implement AMM 2.0-light (#1092)
* Implement neo-swaps
* Fix compile issues
* Implement `DeployPoolsApi` as noop
* Fix formatting
* Add missing copyright notices
* Fix clippy issues
* Fix more clippy issues and rename `balances` to `reserves`
* Remove `println!`
* Add missing copyright notice
* .
* Add benchmarking and include `NeoSwaps` in Runtime
* Add neo-swaps benchmarks; remove `split` (for now)
* Add benchmarks for `create_market_and_deploy_pool`
* Properly implement `DeployPool`
* Fix benchmarks, remove unnecessary parameter
* Fix formatting
* Fix dependencies
* Add math docs
* Fix typo
* Make me codeowner of neo-swaps
* Add neo-swaps to main README and fix link to PDF
* Fix link
* Update versions to v0.4.0 (#1098)
* Update weights (#1101)
* Remove unnecessary comment from toml
* Use default features
* Bump version
* Use checked math in `SoloLp`
* Make match expression explicit
* Add comment about saturation
* Use `MultiCurrency` instead of `ZeitgeistAssetManager`
* Apply suggestions from code review
Co-authored-by: Harald Heckmann <[email protected]>
* Remove superfluous inserts
* Fix error documentation
* Abstract reserve updates into `Pool`
* Make complete set operations require transactional
* Make test name not coffee-based
* Update zrml/neo-swaps/src/mock.rs
Co-authored-by: Harald Heckmann <[email protected]>
* Update zrml/neo-swaps/src/mock.rs
Co-authored-by: Harald Heckmann <[email protected]>
* Reorganize tests
* Format
* Fix comment
* Remove `macros.rs`
* Fix benchmarks
* Fix formatting
* Update benchmark script and add preliminary benchmarks
* Update ED buffer handling
* Fix documentation
* Implement market creation fees for neo-swaps
* Use `MarketCreatorFee` in runtime
* Add missing files
* Add weights
* Reduce length of `MarketsCollectingSubsidy` (#1118)
* Add bad block of the proof size fiasko to Battery Station chain spec (#1119)
Add bad block to Battery Station chain spec
* Update weights v0.4.0 (#1121)
* Update moonbeam dependencies (bench fix)
* Update weights
* Fix docs
* Rename `IndexType` and change its type value
* Remove commented code
* Fix order of config parameters
* Specify order of assets
* Remove commented code
* Apply suggestions from code review
Co-authored-by: Chralt <[email protected]>
* Fix `u16`/`u32` casts
* Update zrml/prediction-markets/src/benchmarks.rs
Co-authored-by: Chralt <[email protected]>
* Update zrml/prediction-markets/src/benchmarks.rs
Co-authored-by: Chralt <[email protected]>
* Update zrml/neo-swaps/src/math.rs
Co-authored-by: Chralt <[email protected]>
* Update primitives/src/math/fixed.rs
Co-authored-by: Chralt <[email protected]>
* Update primitives/src/math/fixed.rs
Co-authored-by: Chralt <[email protected]>
* Fix formatting
* Fix conflicts
* Fix dispute period
* Format code
---------
Co-authored-by: Harald Heckmann <[email protected]>
Co-authored-by: Chralt <[email protected]>1 parent fdda998 commit 3d9bbff
File tree
57 files changed
+6720
-130
lines changed- docs
- primitives
- src
- constants
- math
- traits
- runtime
- battery-station
- src
- common
- src
- zeitgeist
- src
- scripts/benchmarks
- zrml
- neo-swaps
- docs
- src
- tests
- traits
- types
- prediction-markets/src
- swaps/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+6720
-130
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
15 | 47 | | |
16 | 48 | | |
17 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
149 | | - | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
153 | | - | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments