Skip to content

Commit 8e4cd47

Browse files
committed
edit comments and apply review change
1 parent 88c485f commit 8e4cd47

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

currencies/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ use frame_support::{
4444
pallet_prelude::*,
4545
traits::{
4646
Currency as PalletCurrency, ExistenceRequirement, Get, Imbalance, LockableCurrency as PalletLockableCurrency,
47-
NamedReservableCurrency as PalletNamedReservableCurrency, WithdrawReasons,
47+
NamedReservableCurrency as PalletNamedReservableCurrency, ReservableCurrency as PalletReservableCurrency,
48+
WithdrawReasons,
4849
},
4950
};
5051
use frame_system::{ensure_root, ensure_signed, pallet_prelude::*};
@@ -738,7 +739,7 @@ where
738739
impl<T, AccountId, Currency, Amount, Moment> BasicReservableCurrency<AccountId>
739740
for BasicCurrencyAdapter<T, Currency, Amount, Moment>
740741
where
741-
Currency: PalletNamedReservableCurrency<AccountId>,
742+
Currency: PalletReservableCurrency<AccountId>,
742743
T: Config,
743744
{
744745
fn can_reserve(who: &AccountId, value: Self::Balance) -> bool {

traits/src/currency.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ pub trait NamedMultiReservableCurrency<AccountId>: MultiReservableCurrency<Accou
328328
value
329329
}
330330

331-
/// Slash all the reserved balance, returning the negative imbalance
332-
/// created.
331+
/// Slash all the reserved balance, returning the amount that was unable to
332+
/// be slashed.
333333
///
334334
/// Is a no-op if the value to be slashed is zero.
335335
fn slash_all_reserved_named(
@@ -513,7 +513,7 @@ pub trait BasicReservableCurrency<AccountId>: BasicCurrency<AccountId> {
513513
}
514514

515515
/// A fungible single currency system where funds can be reserved from the user
516-
/// with a named reserve identifier.
516+
/// with an identifier.
517517
pub trait NamedBasicReservableCurrency<AccountId, ReserveIdentifier>: BasicReservableCurrency<AccountId> {
518518
/// Deducts up to `value` from reserved balance of `who`. This function
519519
/// cannot fail.

0 commit comments

Comments
 (0)