File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ pub(crate) fn process(
167
167
. total_base_qty
168
168
. checked_mul ( market_state. base_currency_multiplier )
169
169
. unwrap ( ) ;
170
+ order_summary. total_base_qty_posted = order_summary
171
+ . total_base_qty_posted
172
+ . checked_mul ( market_state. base_currency_multiplier )
173
+ . unwrap ( ) ;
170
174
order_summary. total_quote_qty = order_summary
171
175
. total_quote_qty
172
176
. checked_mul ( market_state. quote_currency_multiplier )
Original file line number Diff line number Diff line change @@ -298,6 +298,10 @@ pub(crate) fn process(
298
298
. total_base_qty
299
299
. checked_mul ( market_state. base_currency_multiplier )
300
300
. unwrap ( ) ;
301
+ order_summary. total_base_qty_posted = order_summary
302
+ . total_base_qty_posted
303
+ . checked_mul ( market_state. base_currency_multiplier )
304
+ . unwrap ( ) ;
301
305
order_summary. total_quote_qty = order_summary
302
306
. total_quote_qty
303
307
. checked_mul ( market_state. quote_currency_multiplier )
Original file line number Diff line number Diff line change @@ -254,6 +254,10 @@ pub(crate) fn process(
254
254
. total_base_qty
255
255
. checked_mul ( market_state. base_currency_multiplier )
256
256
. unwrap ( ) ;
257
+ order_summary. total_base_qty_posted = order_summary
258
+ . total_base_qty_posted
259
+ . checked_mul ( market_state. base_currency_multiplier )
260
+ . unwrap ( ) ;
257
261
order_summary. total_quote_qty = order_summary
258
262
. total_quote_qty
259
263
. checked_mul ( market_state. quote_currency_multiplier )
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ use dex_v4::state::UserAccountHeader;
13
13
use dex_v4:: state:: DEX_STATE_LEN ;
14
14
use dex_v4:: state:: USER_ACCOUNT_HEADER_LEN ;
15
15
use mpl_token_metadata:: pda:: find_metadata_account;
16
+ use solana_program:: account_info:: AccountInfo ;
17
+ use solana_program:: entrypoint:: ProgramResult ;
18
+ use solana_program:: msg;
19
+ use solana_program:: program_error:: PrintProgramError ;
16
20
use solana_program:: pubkey:: Pubkey ;
17
21
use solana_program:: system_instruction:: create_account;
18
22
use solana_program:: system_program;
@@ -148,7 +152,7 @@ async fn test_dex() {
148
152
} ,
149
153
create_market:: Params {
150
154
signer_nonce : signer_nonce as u64 ,
151
- min_base_order_size : 10 ,
155
+ min_base_order_size : 10_000 ,
152
156
tick_size : 1 ,
153
157
base_currency_multiplier : 1_000 ,
154
158
quote_currency_multiplier : 1 ,
You can’t perform that action at this time.
0 commit comments