Skip to content

Commit

Permalink
refactor(oracle): Removed unnecessary sudo command
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov authored and Gancho Manev committed May 25, 2023
1 parent ccdb503 commit 03e3fe5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion contracts/oracle/src/contract/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ pub fn sudo(deps: DepsMut<'_>, _env: Env, msg: SudoMsg) -> ContractResult<CwResp
SudoMsg::UpdateConfig(price_config) => Config::update(deps.storage, price_config),
SudoMsg::RegisterFeeder { feeder_address } => Feeders::try_register(deps, feeder_address),
SudoMsg::RemoveFeeder { feeder_address } => Feeders::try_remove(deps, feeder_address),
SudoMsg::RemovePriceAlarm { receiver } => MarketAlarms::new(deps.storage).remove(receiver),
_ => SudoWithOracleBase::cmd(deps, msg),
}
.map(|()| response::empty_response())
Expand Down
5 changes: 0 additions & 5 deletions contracts/oracle/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ pub enum SudoMsg {
SwapTree {
tree: HumanReadableTree<SwapTarget>,
},
/// The aim is to remove price alarms for leases that are in
/// the process of decommissioning
RemovePriceAlarm {
receiver: Addr,
},
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
Expand Down

0 comments on commit 03e3fe5

Please sign in to comment.