diff --git a/contracts/finance/andromeda-validator-staking/src/contract.rs b/contracts/finance/andromeda-validator-staking/src/contract.rs index 94bb080b2..07f0f7fcf 100644 --- a/contracts/finance/andromeda-validator-staking/src/contract.rs +++ b/contracts/finance/andromeda-validator-staking/src/contract.rs @@ -192,11 +192,12 @@ fn execute_unstake( amount: fund.clone(), }); - let mut unstaking_queue = UNSTAKING_QUEUE.load(deps.storage).unwrap_or_default(); - unstaking_queue.push(UnstakingTokens { - fund, - payout_at: Timestamp::default(), - }); + let unstaking_queue = UNSTAKING_QUEUE + .load(deps.storage) + .unwrap_or(vec![UnstakingTokens { + fund, + payout_at: Timestamp::default(), + }]); UNSTAKING_QUEUE.save(deps.storage, &unstaking_queue)?;