Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
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
Co-authored-by: Keith Yeung <[email protected]>
  • Loading branch information
gavofyork and KiChjang authored Jan 16, 2023
commit 5f8fa275c8af991f8fd9cfa38d44790585c882be
4 changes: 2 additions & 2 deletions frame/nis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ pub mod pallet {
.map_err(|_| Error::<T>::Unfunded)?;
} else {
T::Currency::unreserve_named(&T::ReserveId::get(), &who, amount);
on_hold -= amount;
summary.receipts_on_hold -= amount;
on_hold.saturating_reduce(amount);
summary.receipts_on_hold.saturating_reduce(amount);
if dropped && !on_hold.is_zero() {
// Reclaim any remainder:
// Transfer `excess` to the pot if we have now fully compensated for the
Expand Down