Skip to content
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
fix
  • Loading branch information
xlc committed Nov 6, 2023
commit 487fedfad84186ac90e5bdb0f6002fc218dfa5c1
4 changes: 2 additions & 2 deletions tokens/src/imbalances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<T: Config, GetCurrencyId: Get<T::CurrencyId>> Imbalance<T::Balance> for Pos

fn extract(&mut self, amount: T::Balance) -> Self {
let new: T::Balance = self.0.min(amount);
self.0 = self.0 - new;
self.0 -= new;
Self::new(new)
}
}
Expand Down Expand Up @@ -166,7 +166,7 @@ impl<T: Config, GetCurrencyId: Get<T::CurrencyId>> Imbalance<T::Balance> for Neg

fn extract(&mut self, amount: T::Balance) -> Self {
let new: T::Balance = self.0.min(amount);
self.0 = self.0 - new;
self.0 -= new;
Self::new(new)
}
}
Expand Down