diff --git a/contracts/dao/neutron-chain-manager/src/contract.rs b/contracts/dao/neutron-chain-manager/src/contract.rs index 18042c19..e8cae253 100644 --- a/contracts/dao/neutron-chain-manager/src/contract.rs +++ b/contracts/dao/neutron-chain-manager/src/contract.rs @@ -410,8 +410,7 @@ fn check_dex_update_msg_params( return Err(ContractError::Unauthorized {}); } - if dex_params.params.whitelisted_lps - != msg_update_params.params.whitelisted_lps + if dex_params.params.whitelisted_lps != msg_update_params.params.whitelisted_lps && !dex_update_param_permission.whitelisted_lps { return Err(ContractError::Unauthorized {}); diff --git a/contracts/dao/neutron-chain-manager/src/testing/tests.rs b/contracts/dao/neutron-chain-manager/src/testing/tests.rs index 1e4f6090..542bfaab 100644 --- a/contracts/dao/neutron-chain-manager/src/testing/tests.rs +++ b/contracts/dao/neutron-chain-manager/src/testing/tests.rs @@ -777,7 +777,7 @@ pub fn test_execute_execute_message_update_params_dex_unauthorized_fee_tiers() { paused: true, max_jits_per_block: true, good_til_purge_allowance: true, - whitelisted_lps: true + whitelisted_lps: true, })]), ) .unwrap();