From 41bef31368dfd3cf9aadd1ccd4333618dfd3544c Mon Sep 17 00:00:00 2001 From: dzmitry-lahoda Date: Wed, 20 Dec 2023 14:50:19 +0000 Subject: [PATCH] chore: alignment on unstake chore: alignment on unstake --- contracts/fee-distribution/staking/src/contract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/fee-distribution/staking/src/contract.rs b/contracts/fee-distribution/staking/src/contract.rs index 1fc5604..1bbc6cd 100644 --- a/contracts/fee-distribution/staking/src/contract.rs +++ b/contracts/fee-distribution/staking/src/contract.rs @@ -115,13 +115,13 @@ pub fn execute( msg: ExecuteMsg, ) -> Result { match msg { + // handle CW20 hook with assets with ExecuteMsg::Unstake inside => handle_unstake(deps, env, info, submsg), ExecuteMsg::UpdateConfig { tokens_per_interval, } => handle_update_config(deps, info, tokens_per_interval), ExecuteMsg::UpdateRewards {} => handle_update_rewards(deps, env), ExecuteMsg::Stake {} => handle_stake(deps, env, info), ExecuteMsg::Receive(msg) => receive_cw20(deps, env, info, msg), - // ExecuteMsg::Unstake {} => handle_unstake(deps, env, info), ExecuteMsg::Claim { recipient, } => handle_claim(deps, env, info, recipient),