Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/cl dao reserve NTRN-144 #97

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading