Skip to content

Commit

Permalink
updated kleo noop
Browse files Browse the repository at this point in the history
  • Loading branch information
kakucodes committed Dec 27, 2023
1 parent 0400583 commit a0f81c4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
10 changes: 7 additions & 3 deletions contracts/junodca/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use outpost_utils::{
calc_additional_tax_split, calculate_compound_amounts, is_authorized_compounder, prefs_sum_to_one, DestProjectMsgs,
TaxSplitResult,
},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject, StakingDao},
msg_gen::create_exec_msg,
};
use terraswap_helpers::terraswap_swap::create_terraswap_swap_msg_with_simulation;
Expand Down Expand Up @@ -165,9 +165,13 @@ pub fn prefs_to_msgs(

JunoDestinationProject::DaoStaking(dao) => {
if let StakingDao::Kleomedes = dao {
return vec![DestProjectMsgs::default().append_events(vec![Event::new("dao_stake")
let mut noop_resp = DestProjectMsgs::default();

noop_resp.events.push(Event::new("dao_stake")
.add_attribute("dao", dao.to_string())
.add_attribute("status", "disabled")])];
.add_attribute("status", "disabled"));

return Ok(noop_resp);
}

let dao_addresses = dao.get_daos_addresses(&project_addrs.destination_projects.daos);
Expand Down
8 changes: 6 additions & 2 deletions contracts/junostake/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,13 @@ pub fn prefs_to_msgs(

JunoDestinationProject::DaoStaking(dao) => {
if let StakingDao::Kleomedes = dao {
return vec![DestProjectMsgs::default().append_events(vec![Event::new("dao_stake")
let mut noop_resp = DestProjectMsgs::default();

noop_resp.events.push(Event::new("dao_stake")
.add_attribute("dao", dao.to_string())
.add_attribute("status", "disabled")])];
.add_attribute("status", "disabled"));

return Ok(noop_resp);
}

let dao_addresses = dao.get_daos_addresses(&project_addrs.destination_projects.daos);
Expand Down
10 changes: 7 additions & 3 deletions contracts/junowwmarket/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use juno_helpers::dest_project_gen::{
use outpost_utils::{
comp_prefs::DestinationAction,
helpers::{calculate_compound_amounts, is_authorized_compounder, prefs_sum_to_one, sum_coins, DestProjectMsgs, TaxSplitResult},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject, StakingDao},
msg_gen::create_exec_msg,
};
use std::iter;
Expand Down Expand Up @@ -164,9 +164,13 @@ pub fn prefs_to_msgs(

JunoDestinationProject::DaoStaking(dao) => {
if let StakingDao::Kleomedes = dao {
return vec![DestProjectMsgs::default().append_events(vec![Event::new("dao_stake")
let mut noop_resp = DestProjectMsgs::default();

noop_resp.events.push(Event::new("dao_stake")
.add_attribute("dao", dao.to_string())
.add_attribute("status", "disabled")])];
.add_attribute("status", "disabled"));

return Ok(noop_resp);
}


Expand Down
13 changes: 8 additions & 5 deletions contracts/wyndstake/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use cosmwasm_std::{Addr, Attribute, Coin, Decimal, Deps, DepsMut, Env, Event, Me
use outpost_utils::{
comp_prefs::DestinationAction,
helpers::{calculate_compound_amounts, is_authorized_compounder, prefs_sum_to_one, DestProjectMsgs, RewardSplit},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject},
juno_comp_prefs::{JunoCompPrefs, JunoDestinationProject, StakingDao},
msg_gen::create_exec_msg,
};
use terraswap_helpers::terraswap_swap::create_terraswap_swap_msg_with_simulation;
Expand Down Expand Up @@ -172,13 +172,16 @@ pub fn prefs_to_msgs(
},

JunoDestinationProject::DaoStaking(dao) => {

if let StakingDao::Kleomedes = dao {
return vec![DestProjectMsgs::default().append_events(vec![Event::new("dao_stake")
let mut noop_resp = DestProjectMsgs::default();

noop_resp.events.push(Event::new("dao_stake")
.add_attribute("dao", dao.to_string())
.add_attribute("status", "disabled")])];
}
.add_attribute("status", "disabled"));

return Ok(noop_resp);
}

let dao_addresses = dao.get_daos_addresses(&project_addrs.destination_projects.daos);

let (swap_msgs, expected_dao_token_amount) =
Expand Down

0 comments on commit a0f81c4

Please sign in to comment.