Skip to content

Commit

Permalink
Merge pull request #25 from toints/main
Browse files Browse the repository at this point in the history
Feat: add  Liquidate & Profit distribution
  • Loading branch information
Acaishiba authored Dec 5, 2023
2 parents cbce42a + 0589dff commit 53e6b56
Show file tree
Hide file tree
Showing 10 changed files with 868 additions and 107 deletions.
29 changes: 27 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ members = [
"pallets/pot",
"pallets/assurance",
"pallets/pallet-xcm",
"pallets/liquidation",
]
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parachain-magnet-node"
version = "0.2.0"
version = "0.3.0"
authors = ["Anonymous"]
description = "A scalable evm smart contract platform node, utilizing DOT as the gas fee."
license = "Apache License 2.0"
Expand Down
63 changes: 63 additions & 0 deletions pallets/liquidation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[package]
name = "pallet-liquidation"
version = "0.1.0"
authors = ["Magport Tech."]
description = "gas fee caculate and liquidation"
license = "Apache-2.0"
edition.workspace = true
repository.workspace = true
homepage = "https://magnet.magport.io/"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = {package = "parity-scale-codec", version = "3.6.4", default-features = false, features = [
"derive",
]}
log = {version = "0.4.20", default-features = false}
scale-info = { version = "2.9.0", default-features = false, features = ["derive"] }
smallvec = "1.11.0"

pallet-order = {path = "../order", default-features = false}
pallet-pot = {path = "../pot", default-features = false}
mp-system = { path = "../../primitives/system", default-features = false }

pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
pallet-assets = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-std = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false}
frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
frame-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false, optional = true}

[features]
default = ['std']
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"pallet-assets/std",
"pallet-order/std",
"pallet-pot/std",
"mp-system/std",
"frame-benchmarking/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime",
]
Loading

0 comments on commit 53e6b56

Please sign in to comment.