Skip to content
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

Inflation Test #183

Merged
merged 9 commits into from
Dec 30, 2019
Prev Previous commit
Next Next commit
merge from develop
  • Loading branch information
readlnh committed Dec 27, 2019
commit a2bb4eef79dfb231e5ed2988f154685cb6c7a49d
26 changes: 25 additions & 1 deletion srml/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4074,4 +4074,28 @@ fn test_payout() {
// }
// assert_eq!(current_total_payout_for_duration(1000 * 3600 * 24 * 36525 / 100), 8 * 10_000_000 * COIN);
});
}
}
// breakpoint test
//#[test]
//fn xavier_q4() {
// ExtBuilder::default().build().execute_with(|| {
// let (stash, _controller) = (11, 10);
// let _ = Kton::deposit_creating(&stash, 1000);
// assert_ok!(Staking::bond_extra(
// Origin::signed(stash),
// StakingBalances::KtonBalance(1000),
// 0,
// ));
//
// let power = Staking::power_of(&11);
// <Stakers<Test>>::insert(
// &stash,
// Exposure {
// total: power,
// own: power,
// others: vec![],
// },
// );
// let _ = Staking::slash_validator(&stash, power / 2, &Staking::stakers(&stash), &mut vec![]);
// });
//}
You are viewing a condensed version of this merge commit. You can view the full changes here.