Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update: format
  • Loading branch information
aurexav committed Feb 20, 2020
commit 46d4f9f20f7cc82fd21a9e9fa577e79007d1f660
6 changes: 3 additions & 3 deletions frame/balances/ring/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ decl_storage! {
/// is invoked, giving a chance to external modules to clean up data associated with
/// the deleted account.
///
/// `system::AccountNonce` is also deleted if `ReservedBalance` is also zero (it also gets
/// `frame_system::AccountNonce` is also deleted if `ReservedBalance` is also zero (it also gets
/// collapsed to zero if it ever becomes less than `ExistentialDeposit`.
pub FreeBalance get(fn free_balance)
build(|config: &GenesisConfig<T, I>| config.balances.clone()):
Expand All @@ -382,7 +382,7 @@ decl_storage! {
/// When this balance falls below the value of `ExistentialDeposit`, then this 'reserve account'
/// is deleted: specifically, `ReservedBalance`.
///
/// `system::AccountNonce` is also deleted if `FreeBalance` is also zero (it also gets
/// `frame_system::AccountNonce` is also deleted if `FreeBalance` is also zero (it also gets
/// collapsed to zero if it ever becomes less than `ExistentialDeposit`.)
pub ReservedBalance get(fn reserved_balance): map T::AccountId => T::Balance;

Expand Down Expand Up @@ -460,7 +460,7 @@ decl_module! {
/// This will alter `FreeBalance` and `ReservedBalance` in storage. it will
/// also decrease the total issuance of the system (`TotalIssuance`).
/// If the new free or reserved balance is below the existential deposit,
/// it will reset the account nonce (`system::AccountNonce`).
/// it will reset the account nonce (`frame_system::AccountNonce`).
///
/// The dispatch origin for this call is `root`.
///
Expand Down
3 changes: 1 addition & 2 deletions frame/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ frame-support = { version = "2.0.0", default-features = false, git = "https://gi
frame-system = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
pallet-authorship = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
pallet-session = { version = "2.0.0", default-features = false, features = ["historical"], git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
pallet-timestamp = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
sp-core = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
sp-io ={ default-features = false, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
sp-keyring = { version = "2.0.0", optional = true, git = "https://github.com/paritytech/substrate.git", rev = "3e651110aa06aa835790df63410a29676243fc54" }
Expand Down Expand Up @@ -45,7 +44,7 @@ std = [
"frame-system/std",
"pallet-authorship/std",
"pallet-session/std",
"pallet-timestamp/std",
"sp-core/std",
"sp-io/std",
"sp-keyring",
"sp-runtime/std",
Expand Down
6 changes: 3 additions & 3 deletions frame/staking/src/inflation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use sp_runtime::{
};
use sp_std::convert::TryInto;

use crate::{Balance, KtonBalance, Moment, MomentOf, RingBalance, Trait};
use crate::{Balance, KtonBalance, Moment, MomentT, RingBalance, Trait};

// 1 - (99 / 100) ^ sqrt(year)
// <T: Trait + 'static>() -> RingBalance<T>
pub fn compute_total_payout<T: Trait>(
era_duration: MomentOf<T>,
living_time: MomentOf<T>,
era_duration: MomentT<T>,
living_time: MomentT<T>,
total_left: RingBalance<T>,
payout_fraction: Perbill,
) -> (RingBalance<T>, RingBalance<T>) {
Expand Down