From 865d5a7345f08b87a780e05fc7a593ca3ae9c6b4 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 27 Oct 2023 10:58:38 +0400 Subject: [PATCH] send lps to dao --- contracts/tokenomics/reserve/src/contract.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/tokenomics/reserve/src/contract.rs b/contracts/tokenomics/reserve/src/contract.rs index 7cb89fbe..538245ad 100644 --- a/contracts/tokenomics/reserve/src/contract.rs +++ b/contracts/tokenomics/reserve/src/contract.rs @@ -553,6 +553,8 @@ fn provide_liquidity_to_cl_pair_after_withdrawal_callback( let withdrawn_paired_asset_amount = paired_asset_balance_after_withdrawal.checked_sub(paired_asset_init_balance)?; + let config = CONFIG.load(deps.storage)?; + let msgs: Vec = vec![ // push message to provide liquidity to the CL pair CosmosMsg::Wasm(WasmMsg::Execute { @@ -564,7 +566,7 @@ fn provide_liquidity_to_cl_pair_after_withdrawal_callback( ], slippage_tolerance: Some(slippage_tolerance), auto_stake: None, - receiver: None, + receiver: Option::from(config.main_dao_address.to_string()), })?, funds: vec![ Coin::new(withdrawn_ntrn_amount.into(), ntrn_denom.clone()),