Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

NIS should retain funds in reserve #12928

Merged
merged 20 commits into from
Jan 17, 2023
Merged
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 frame/nis/src/lib.rs
  • Loading branch information
gavofyork authored Jan 16, 2023
commit 050f15a36504fcbbc6431e60cfeeac20556be0ab
2 changes: 1 addition & 1 deletion frame/nis/src/lib.rs
Original file line number Diff line number Diff line change
@@ -744,7 +744,7 @@ pub mod pallet {
// transfer function to transfer the reserved balance into free balance in
// the destination regardless of locks and create it if it doesn't exist.
let _ = T::Currency::transfer(&who, &Self::account_id(), on_hold, AllowDeath);
summary.receipts_on_hold -= on_hold;
summary.receipts_on_hold.saturating_reduce(on_hold);
}
}