Display Reward amount (#9245)

* name reward amount

* Fix
This commit is contained in:
Kian Paimani
2021-07-01 11:50:24 +02:00
committed by GitHub
parent ff4b9c0d72
commit 73a6e3effc
2 changed files with 8 additions and 5 deletions
@@ -417,7 +417,7 @@ impl<T: Config> Pallet<T> {
<QueuedSolution<T>>::put(ready_solution);
// emit reward event
Self::deposit_event(crate::Event::Rewarded(who.clone()));
Self::deposit_event(crate::Event::Rewarded(who.clone(), reward));
// unreserve deposit.
let _remaining = T::Currency::unreserve(who, deposit);
@@ -434,7 +434,7 @@ impl<T: Config> Pallet<T> {
///
/// Infallible
pub fn finalize_signed_phase_reject_solution(who: &T::AccountId, deposit: BalanceOf<T>) {
Self::deposit_event(crate::Event::Slashed(who.clone()));
Self::deposit_event(crate::Event::Slashed(who.clone(), deposit));
let (negative_imbalance, _remaining) = T::Currency::slash_reserved(who, deposit);
debug_assert!(_remaining.is_zero());
T::SlashHandler::on_unbalanced(negative_imbalance);