Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
typo fix & process_spot_orders to process_orders for accurate meaning
Browse files Browse the repository at this point in the history
  • Loading branch information
jelysn committed Nov 30, 2023
1 parent 851981c commit 5b69a3f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/action/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ pub mod reply {
pub mod sudo {
use super::*;

mod process_spot_orders;
pub use process_spot_orders::process_spot_orders;
mod process_orders;
pub use process_orders::process_orders;
}
2 changes: 1 addition & 1 deletion src/action/query/get_margin_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ pub fn get_margin_position(
if let Some(_) = &resp.mtp {
Ok(resp)
} else {
Err(StdError::not_found("margin trading prosition").into())
Err(StdError::not_found("margin trading position").into())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::ops::Div;

use super::*;

pub fn process_spot_orders(
pub fn process_orders(
deps: DepsMut<ElysQuery>,
env: Env,
) -> Result<Response<ElysMsg>, ContractError> {
Expand Down
2 changes: 1 addition & 1 deletion src/entry_point/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ pub fn sudo(
msg: SudoMsg,
) -> Result<Response<ElysMsg>, ContractError> {
match msg {
SudoMsg::ClockEndBlock {} => process_spot_orders(deps, env),
SudoMsg::ClockEndBlock {} => process_orders(deps, env),
}
}

0 comments on commit 5b69a3f

Please sign in to comment.