pub fn remove_unbond_wait_list(
    storage: &mut dyn Storage,
    batch_id: Vec<u64>,
    sender_address: Addr,
) -> StdResult<()> {
    let addr = to_vec(&sender_address)?;
    let mut position_indexer: Bucket<Uint128> =
        Bucket::multilevel(storage, &[PREFIX_WAIT_MAP, &addr]);
    for b in batch_id {
        let batch = to_vec(&b)?;
        position_indexer.remove(&batch);
    }
    Ok(())
}
/// Remove unbond batch id from user's wait list
Remove unbond batch id from user's wait list
Remove unbond batch id from user ' s wait list
pub fn remove_unbond_wait_list(
    storage: &mut dyn Storage,
    batch_id: Vec<u64>,
    sender_address: Addr,
) -> StdResult<()> {
    let addr = to_vec(&sender_address)?;
    let mut position_indexer: Bucket<Uint128> =
        Bucket::multilevel(storage, &[PREFIX_WAIT_MAP, &addr]);
    for b in batch_id {
        let batch = to_vec(&b)?;
        position_indexer.remove(&batch);
    }
    Ok(())
}
pub fn remove_unbond_wait_list ( storage : & mut dyn Storage , batch_id : Vec < u64 > , sender_address : Addr , ) -> StdResult < ( ) > { let addr = to_vec ( & sender_address ) ? ; let mut position_indexer : Bucket < Uint128 > = Bucket :: multilevel ( storage , & [ PREFIX_WAIT_MAP , & addr ] ) ; for b in batch_id { let batch = to_vec ( & b ) ? ; position_indexer . remove ( & batch ) ; } Ok ( ( ) ) }
Remove unbond batch id from user's wait list
Remove unbond batch id from user ' s wait list
storage
&mut dyn Storage
batch_id
Vec<u64>
sender_address
Addr
storage
&mut dyn Storage
batch_id
Vec<u64>
sender_address
Addr