This repository has been archived by the owner on May 30, 2023. It is now read-only.
Feat: liquidity mining #50
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2ebe5be
WIP - liquidity mining pallet
martinfridrich 8f4c41a
Merge branch 'main' into feat/liquidity-mining
martinfridrich cbe64e2
WIP - liquidity mining
martinfridrich 6cb2629
WIP - updates to work with basilisk liquidity mining pallet
martinfridrich 2a5ecaf
WIP - update LM trait, updated LM pallet to use LM trait + test fixes
martinfridrich 9a39e48
Updated test and comments
martinfridrich bde8c73
replaced LiquidityPoolYieldFarm.stake_in_global_pool with on demand c…
martinfridrich File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ members = [ | |
"nft", | ||
"asset-registry", | ||
"collator-rewards", | ||
"liquidity-mining", | ||
] | ||
|
||
resolver = "2" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[package] | ||
name = "pallet-liquidity-mining" | ||
version = "1.0.0" | ||
description = "Liquidity mining" | ||
authors = ["GalacticCouncil"] | ||
edition = "2018" | ||
homepage = "https://github.com/galacticcouncil/Basilisk-node" | ||
license = "Apache 2.0" | ||
repository = "https://github.com/galacticcouncil/Basilisk-node" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warehouse repo |
||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.3.1" } | ||
scale-info = { version = "1.0", default-features = false, features = ["derive"] } | ||
serde = { features = ["derive"], optional = true, version = "1.0.101" } | ||
sp-arithmetic = { git = "https://github.com/paritytech//substrate", rev = "22d40c761a985482f93bbbea5ba4199bdba74f8e", default-features = false } | ||
|
||
# ORML dependencies | ||
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "aac79b3b31953381669a2ffa9b3e9bfe48e87f38", default-features = false } | ||
|
||
# HydraDX dependencies | ||
hydradx-traits = { path = "../traits", version="0.6.0", default-features = false } | ||
hydra-dx-math = { git = "https://github.com/galacticcouncil/HydraDX-math", rev="3e0e6774d52184b00e758dc822564e5a893773f5", default-features = false } | ||
|
||
# Substrate dependencies | ||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
|
||
orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "aac79b3b31953381669a2ffa9b3e9bfe48e87f38", default-features = false } | ||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
|
||
[dev-dependencies] | ||
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false } | ||
orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "aac79b3b31953381669a2ffa9b3e9bfe48e87f38", default-features = false } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"serde", | ||
"codec/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"sp-std/std", | ||
"orml-traits/std", | ||
"orml-tokens/std", | ||
"hydradx-traits/std", | ||
"pallet-balances/std", | ||
"sp-arithmetic/std", | ||
] |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2021