Skip to content

Commit

Permalink
Increase page size when retrieving orders (#5302)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jan 31, 2024
1 parent b23fb29 commit 4a46287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/canisters/market_maker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Avoid usages of `make_c2c_call` and use macro instead ([#5252](https://github.com/open-chat-labs/open-chat/pull/5252))
- Filter out orders which have 0 amount remaining ([#5301](https://github.com/open-chat-labs/open-chat/pull/5301))
- Increase page size when retrieving orders ([#5302](https://github.com/open-chat-labs/open-chat/pull/5302))

## [[2.0.999](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.999-market_maker)] - 2024-01-05

Expand Down
3 changes: 2 additions & 1 deletion backend/libraries/icdex_client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use candid::Nat;
use ic_cdk::api::call::{CallResult, RejectionCode};
use icdex_canister::{ICDexOrderType, MakeOrderResponse, OrderPrice, OrderQuantity, TradingOrder};
use icrc_ledger_types::icrc1::transfer::TransferArg;
Expand Down Expand Up @@ -49,7 +50,7 @@ impl<M: Fn(MakeOrderRequest), C: Fn(CancelOrderRequest)> ICDexClient<M, C> {
}

pub async fn my_open_orders(&self) -> CallResult<Vec<Order>> {
let args = (self.this_canister_id.to_string(), None, None);
let args = (self.this_canister_id.to_string(), None, Some(Nat::from(250u32)));

let orders = icdex_canister_c2c_client::pending(self.dex_canister_id, args).await?.0;

Expand Down

0 comments on commit 4a46287

Please sign in to comment.