Skip to content

Commit

Permalink
Jarry/small bug in create mint (#36)
Browse files Browse the repository at this point in the history
* fix bug in create mint

* bump version

* Add more data to get-market to help with market creation
  • Loading branch information
jarry-xiao authored Jul 17, 2023
1 parent d0d26d4 commit 06876ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phoenix-cli"
version = "0.3.3"
version = "0.3.4"
description = "CLI and associated library for interacting with the Phoenix program from the command line"
edition = "2021"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/helpers/devnet_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ pub mod devnet_token_faucet {
let create_mint_data = CreateMint { ticker, decimals };

let ix_data: Vec<u8> = [
CREAT_MINT_DISCRIMINATOR,
create_mint_data.try_to_vec().unwrap().try_into().unwrap(),
&CREAT_MINT_DISCRIMINATOR,
create_mint_data.try_to_vec().unwrap().as_slice(),
]
.concat();

Expand Down
14 changes: 11 additions & 3 deletions src/lib/helpers/print_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,34 @@ pub async fn print_market_details(
println!("Quote vault key: {}", market_header.quote_params.vault_key);

println!(
"Base Lot Size, in raw base units: {}",
"Raw base units per base lot: {}",
get_decimal_string(
market_metadata.base_atoms_per_base_lot,
market_metadata.base_decimals
),
);
println!(
"Quote Lot Size, in quote units: {}",
"Quote units per quote lot: {}",
get_decimal_string(
market_metadata.quote_atoms_per_quote_lot,
market_metadata.quote_decimals
)
);
println!(
"Tick size in quote atoms per base unit: {}",
"Tick size in quote units per base unit: {}",
get_decimal_string(
market_metadata.tick_size_in_quote_atoms_per_base_unit,
market_metadata.quote_decimals
)
);
println!(
"Num base lots per base unit: {}",
market_metadata.num_base_lots_per_base_unit,
);
println!(
"Tick size in quote atoms per base unit: {}",
market_metadata.tick_size_in_quote_atoms_per_base_unit,
);
println!("Taker fees in basis points: {}", taker_fees);
println!("Fee destination pubkey: {:?}", market_header.fee_recipient);
println!(
Expand Down

0 comments on commit 06876ab

Please sign in to comment.