Skip to content

Commit

Permalink
fix: merge files from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Orris committed Dec 20, 2023
1 parent e84a58b commit 23c3d8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions pallets/capacity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,6 @@ impl<T: Config> Pallet<T> {
.min(proposed_amount)
}

// Calculates the total amount of tokens that are currently unlocked for the given staker.
pub(crate) fn get_unlocking_total_for(staker: &T::AccountId) -> (BalanceOf<T>, Weight) {
let unlocks = Self::get_unstake_unlocking_for(staker).unwrap_or_default();
(unlock_chunks_total::<T>(&unlocks), T::DbWeight::get().reads(1))
}

pub(crate) fn do_withdraw_unstaked(
staker: &T::AccountId,
) -> Result<BalanceOf<T>, DispatchError> {
Expand Down
1 change: 0 additions & 1 deletion pallets/capacity/src/migration/v2.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::{
types::{StakingDetails, UnlockChunk},
BalanceOf, Config, Pallet, StakingAccountLedger, StakingType, UnlockChunkList, UnstakeUnlocks,
STORAGE_VERSION_V2,
};
use frame_support::{
pallet_prelude::{GetStorageVersion, Weight},
Expand Down

0 comments on commit 23c3d8c

Please sign in to comment.