Skip to content

Commit 64dbde3

Browse files
committed
fix
1 parent 234269e commit 64dbde3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defaults:
1414
env:
1515
CARGO_TERM_COLOR: always
1616
RUST_TOOLCHAIN: 1.87.0
17-
SOLANA_VERSION: "2.2.1"
17+
SOLANA_VERSION: "1.16.27"
1818

1919
jobs:
2020
fmt-clippy:

programs/drift/src/math/liquidation/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ mod validate_transfer_satisfies_limit_price {
610610
let limit_price = PRICE_PRECISION_U64 * 100; // $100 / 1 SOL
611611
let asset = 100 * QUOTE_PRECISION;
612612
let asset_decimals = 6_u32;
613-
let liability = LAMPORTS_PER_SOL as u128;
613+
let liability = LAMPORTS_PER_SOL_U64 as u128;
614614
let liability_decimals = 9_u32;
615615

616616
assert!(validate_transfer_satisfies_limit_price(

programs/drift/src/math/orders/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ mod get_max_fill_amounts {
501501
let (max_base, max_quote) =
502502
get_max_fill_amounts(&user, 0, &base_market, &quote_market, true).unwrap();
503503

504-
assert_eq!(max_base, Some(100 * LAMPORTS_PER_SOL));
504+
assert_eq!(max_base, Some(100 * LAMPORTS_PER_SOL_U64));
505505
assert_eq!(max_quote, None);
506506
}
507507

programs/drift/src/state/perp_market_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<'a> PerpMarketMap<'a> {
154154
}
155155

156156
let account_discriminator = &data[..8];
157-
if account_discriminator != &PerpMarket::DISCRIMINATOR {
157+
if account_discriminator != PerpMarket::DISCRIMINATOR {
158158
return Err(ErrorCode::CouldNotLoadMarketData);
159159
}
160160

0 commit comments

Comments
 (0)