Skip to content

Commit

Permalink
chore: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
mclyk committed Mar 21, 2024
1 parent 97fcf18 commit 9b6126e
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions pallets/liquid-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ pub mod pallet {
/// Fast Unstake Matched
/// [unstaker, received_staking_amount, matched_liquid_amount, fee_in_liquid_currency]
FastUnstakeMatched(T::AccountId, BalanceOf<T>, BalanceOf<T>, BalanceOf<T>),
/// Incentive amount was updated
IncentiveUpdated(BalanceOf<T>),
/// Unstake_reserve_factor was updated
UnstakeReserveFactorUpdated(Ratio),
/// Event emitted when the unstake reserves are reduced
Expand Down Expand Up @@ -449,11 +447,6 @@ pub mod pallet {
#[pallet::getter(fn is_matched)]
pub type IsMatched<T: Config> = StorageValue<_, bool, ValueQuery>;

/// Incentive for users who successfully update era/ledger
#[pallet::storage]
#[pallet::getter(fn incentive)]
pub type Incentive<T: Config> = StorageValue<_, BalanceOf<T>, ValueQuery>;

#[derive(Default)]
#[pallet::genesis_config]
pub struct GenesisConfig {
Expand Down Expand Up @@ -1084,22 +1077,8 @@ pub mod pallet {
Ok(())
}

/// Update incentive amount
#[pallet::call_index(23)]
#[pallet::weight(<T as Config>::WeightInfo::update_incentive())]
#[transactional]
pub fn update_incentive(
origin: OriginFor<T>,
#[pallet::compact] amount: BalanceOf<T>,
) -> DispatchResult {
T::UpdateOrigin::ensure_origin(origin)?;
Incentive::<T>::put(amount);
Self::deposit_event(Event::<T>::IncentiveUpdated(amount));
Ok(())
}

/// Update insurance pool's unstake_reserve_factor
#[pallet::call_index(24)]
#[pallet::call_index(23)]
#[pallet::weight(<T as Config>::WeightInfo::update_reserve_factor())]
#[transactional]
pub fn update_unstake_reserve_factor(
Expand All @@ -1125,7 +1104,7 @@ pub mod pallet {
}

/// Reduces unstake reserves by transferring to receiver.
#[pallet::call_index(25)]
#[pallet::call_index(24)]
#[pallet::weight(<T as Config>::WeightInfo::reduce_reserves())]
#[transactional]
pub fn reduce_unstake_reserves(
Expand Down

0 comments on commit 9b6126e

Please sign in to comment.