-
Notifications
You must be signed in to change notification settings - Fork 28
Custom synthetics #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Custom synthetics #264
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
16654c4
Fix bug with double `AssetRegistered` event
Arjentix c79259a
Take `DataFeed` trait from `oracle-proxy-pallet` branch
Arjentix 079d7af
Allow trading pair registration via method
Arjentix 14dc823
Introduce new extrinsics
Arjentix 87c2fd5
Merge branch 'develop' into custom_synthetics
Arjentix 4e05c6f
Add "USD" corner case
Arjentix da06c1a
Add `asset_symbol` and `asset_name` parameters
Arjentix 1f0daf7
Add synthetic asset id generation
Arjentix b91fd23
Fix reference_price() to work with all synthetics
Arjentix 1b1c2eb
Add oracle prices to `buy_price()`
Arjentix 01d0e65
Add oracle prices to `sell_price()`
Arjentix 7f0bfe6
Add `SyntheticInfo` struct
Arjentix 60acb34
Add extrinsics to set fees
Arjentix 8bcd912
Implement fees logic
Arjentix dfe3f4c
Add fees into `enable_synthetic_asset()` extrinsic
Arjentix 1dad40e
Remove some useless code
Arjentix 0a7c8fc
Update Config usage in mock and runtime
Arjentix 0c85af8
Some fixes to make it all compile
Arjentix 2e47d6b
Revert "Implement fees logic"
Arjentix 6ec0ae4
Make one fee instead of buy and sell fees
Arjentix a9f5db1
Fix calculation in `reference_price()`
Arjentix a46da94
Add tests for new extrinsics
Arjentix 8ce807a
Merge branch 'develop' into custom_synthetics
Arjentix 7ad8bc3
Partly fix benchmarks
Arjentix 1acec10
Move `xst` pallet benchmarks to a separate crate
Arjentix ae9b741
Finish fixing benchmarks
Arjentix a5fdf5c
Update weights
Arjentix d14c109
Update extrinsics doc comments
Arjentix 057b2ed
Add migration
Arjentix b0c5df0
Remove useless `LiquidityProxy` from xst::Config
Arjentix ed4af6c
Merge branch 'develop' into custom_synthetics
Arjentix cf68815
Merge branch 'develop' into custom_synthetics
Arjentix ea5b396
Merge branch 'develop' into custom_synthetics
Arjentix ce0bf0b
Merge branch 'develop' into custom_synthetics
vovac12 e748571
Move synthetic asset id generation to primitives
Arjentix 4dfd15a
Add old base fee storage killing
Arjentix d200df8
Merge branch 'develop' into custom_synthetics
Arjentix ef4d1a7
Replace `fastmurmur3` with `sp_io::hashing`
Arjentix ce86959
Merge branch 'develop' into custom_synthetics
Arjentix 9146ae7
Improve trait bounds for `xst::Config`
Arjentix 3dc09bc
Merge branch 'develop' into custom_synthetics
pakrentos 4f3e712
quickfix
pakrentos 0ec3c4d
Merge branch 'develop' into custom_synthetics
pakrentos a0c4291
Merge branch 'develop' into custom_synthetics
pakrentos 7066170
Merge remote-tracking branch 'origin/custom_synthetics' into custom_s…
pakrentos 49bf6cc
remove unnecessary imports
pakrentos 37dda2e
fix
pakrentos c77e687
fix
pakrentos c171811
removed XSTUSD from Assets pallet init (initialized in XST palllet)
pakrentos 78f90cf
Merge branch 'develop' into custom_synthetics
pakrentos 0eb9b07
Merge branch 'develop' into custom_synthetics
pakrentos ed947e0
Merge branch 'develop' into custom_synthetics
pakrentos 6d56ba6
Merge branch 'develop' into custom_synthetics
pakrentos ba02ab6
quickfix
pakrentos b47e858
Merge branch 'develop' into custom_synthetics
pakrentos d0007ba
Merge branch 'develop' into custom_synthetics
pakrentos 96c3152
Merge branch 'develop' into custom_synthetics
pakrentos c41469b
Merge branch 'develop' into custom_synthetics
pakrentos 3f0d503
Merge branch 'develop' into custom_synthetics
pakrentos 0a8558a
updated tests
pakrentos 205e20d
updated storage definitions
pakrentos 61eb9da
Merge branch 'develop' into custom_synthetics
pakrentos feb8818
fix
pakrentos d362897
fix tests
pakrentos 368e92b
fixed migrations
pakrentos b0fb66b
fixed benchmarks
pakrentos 96c18e4
fixed tests
pakrentos 63576bb
updated xst config
pakrentos ce79b5c
quickfix
pakrentos 6efb757
added outdated oracle rates check
pakrentos 49b256f
Merge branch 'develop' into custom_synthetics
pakrentos b230c2e
moved rate expiration check to band pallet
pakrentos 1193340
Merge branch 'develop' into custom_synthetics
pakrentos 3b764a5
quickfix
pakrentos 0740eef
quickfix
pakrentos a4d12c3
quickfix
pakrentos 5351ba9
Merge branch 'develop' into custom_synthetics
pakrentos b55b30b
resolved merge conflicts
pakrentos 684c296
Merge branch 'develop' into custom_synthetics
pakrentos ea4e2da
quickfix
pakrentos f1d88d4
quickfix
pakrentos 59db668
Merge branch 'develop' into custom_synthetics
pakrentos 13ae71f
fix
pakrentos c79f073
Merge branch 'develop' into custom_synthetics
pakrentos a61fd68
build fix
wer1st d1f0f0c
Merge remote-tracking branch 'origin/custom_synthetics' into custom_s…
pakrentos 2fdc8f1
fixed xst benchmarks
pakrentos 2e463fd
updated xst weights
pakrentos b681213
removed mocks
pakrentos 12f9e26
removed unused imports
pakrentos 9b209f0
Merge branch 'develop' into custom_synthetics
pakrentos 9b1e0c4
resolved conflict
pakrentos d78c875
reverted benchmarks
pakrentos 6d92d5e
fixed pallet-timestamp repo
pakrentos 1eca45c
added empty line
pakrentos 3a2cc74
fixed rate stale period constant
pakrentos a13f5f8
fixed xst migrations
pakrentos 6c05706
updated synthetic asset registration process
pakrentos 8e13574
fixed
pakrentos a14ea6a
resolved conflicts
pakrentos 0814ce5
resolved conflicts
pakrentos 5c027fe
Merge remote-tracking branch 'origin/custom_synthetics' into custom_s…
pakrentos c22b93c
Merge branch 'develop' into custom_synthetics
pakrentos 7db3b6b
removed unused import
pakrentos cbcf7f1
Merge remote-tracking branch 'origin/custom_synthetics' into custom_s…
pakrentos 74cd056
Merge branch 'develop' into custom_synthetics
pakrentos c4dc78f
fixed band dependencies
pakrentos a313b7e
check optimization
pakrentos e58ef02
added fee ratio check
pakrentos af68ee0
Merge branch 'develop' into custom_synthetics
pakrentos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add old base fee storage killing
Signed-off-by: Daniil Polyakov <[email protected]>
- Loading branch information
commit 4dfd15a05febffeec8303498800d0097f58c034b
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.