Skip to content

Commit 1873670

Browse files
authored
expose constants of pallet_recovery trait (#6363)
1 parent b0b61d1 commit 1873670

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,18 @@ decl_module! {
320320
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
321321
type Error = Error<T>;
322322

323+
/// The base amount of currency needed to reserve for creating a recovery configuration.
324+
const ConfigDepositBase: BalanceOf<T> = T::ConfigDepositBase::get();
325+
326+
/// The amount of currency needed per additional user when creating a recovery configuration.
327+
const FriendDepositFactor: BalanceOf<T> = T::FriendDepositFactor::get();
328+
329+
/// The maximum amount of friends allowed in a recovery configuration.
330+
const MaxFriends: u16 = T::MaxFriends::get();
331+
332+
/// The base amount of currency needed to reserve for starting a recovery.
333+
const RecoveryDeposit: BalanceOf<T> = T::RecoveryDeposit::get();
334+
323335
/// Deposit one of this module's events by using the default implementation.
324336
fn deposit_event() = default;
325337

0 commit comments

Comments
 (0)