Skip to content

Commit

Permalink
send lps to dao
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Oct 27, 2023
1 parent 4a3d380 commit 865d5a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/tokenomics/reserve/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CosmosMsg> = vec![
// push message to provide liquidity to the CL pair
CosmosMsg::Wasm(WasmMsg::Execute {
Expand All @@ -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()),
Expand Down

0 comments on commit 865d5a7

Please sign in to comment.