Skip to content

Commit

Permalink
[MOON-1902] autocompound staking rewards (#1828)
Browse files Browse the repository at this point in the history
* include analyze functionality in pov tool

* add extrinsics for handling auto-compounding

* user percent based compounding

Co-authored-by: Crystalin <[email protected]>
  • Loading branch information
nbaztec and Crystalin authored Oct 12, 2022
1 parent d069c1a commit aa799b2
Show file tree
Hide file tree
Showing 26 changed files with 3,825 additions and 190 deletions.
2 changes: 1 addition & 1 deletion node/service/src/chain_spec/moonbase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub fn testnet_genesis(
tech_comittee_members: Vec<AccountId>,
treasury_council_members: Vec<AccountId>,
candidates: Vec<(AccountId, NimbusId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance, Percent)>,
endowed_accounts: Vec<AccountId>,
crowdloan_fund_pot: Balance,
para_id: ParaId,
Expand Down
2 changes: 1 addition & 1 deletion node/service/src/chain_spec/moonbeam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub fn testnet_genesis(
tech_comittee_members: Vec<AccountId>,
treasury_council_members: Vec<AccountId>,
candidates: Vec<(AccountId, NimbusId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance, Percent)>,
endowed_accounts: Vec<AccountId>,
crowdloan_fund_pot: Balance,
para_id: ParaId,
Expand Down
2 changes: 1 addition & 1 deletion node/service/src/chain_spec/moonriver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub fn testnet_genesis(
tech_comittee_members: Vec<AccountId>,
treasury_council_members: Vec<AccountId>,
candidates: Vec<(AccountId, NimbusId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance)>,
delegations: Vec<(AccountId, AccountId, Balance, Percent)>,
endowed_accounts: Vec<AccountId>,
crowdloan_fund_pot: Balance,
para_id: ParaId,
Expand Down
3 changes: 1 addition & 2 deletions pallets/parachain-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ substrate-fixed = { git = "https://github.com/encointer/substrate-fixed", defaul
nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.29", default-features = false }

[dev-dependencies]
similar-asserts = "1.1.0"

pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.29" }
similar-asserts = "1.1.0"
sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.29" }
sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.29" }

Expand Down
Loading

0 comments on commit aa799b2

Please sign in to comment.