Skip to content

Commit

Permalink
Merge pull request #16 from jordy25519/chore/drift-v2.53.0
Browse files Browse the repository at this point in the history
Update to drift v2.53.0
  • Loading branch information
crispheaney authored Jan 10, 2024
2 parents 847e368 + d5a36f5 commit 7674b6c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
15 changes: 13 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion programs/jit-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ default = []
[dependencies]
anchor-lang = "0.27.0"
anchor-spl = "0.27.0"
drift = { git = "https://github.com/drift-labs/protocol-v2.git", rev = "e5cdd4", features = ["cpi", "mainnet-beta"]}
bytemuck = { version = "1.4.0" }
drift = { git = "https://github.com/drift-labs/protocol-v2.git", tag = "v2.53.0", features = ["cpi", "mainnet-beta"]}
static_assertions = "1.1.0"
2 changes: 1 addition & 1 deletion programs/jit-proxy/src/instructions/arb_perp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ use drift::controller::position::PositionDirection;
use drift::cpi::accounts::PlaceAndTake;
use drift::error::DriftResult;
use drift::instructions::optional_accounts::{load_maps, AccountMaps};
use drift::instructions::{OrderParams, PostOnlyParam};
use drift::math::casting::Cast;
use drift::math::constants::{BASE_PRECISION, MARGIN_PRECISION_U128, QUOTE_PRECISION};
use drift::math::margin::MarginRequirementType;
use drift::program::Drift;
use drift::state::perp_market_map::MarketSet;
use drift::state::order_params::{OrderParams, PostOnlyParam};
use std::ops::Deref;

use drift::math::orders::find_bids_and_asks_from_users;
Expand Down
2 changes: 1 addition & 1 deletion programs/jit-proxy/src/instructions/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use drift::controller::position::PositionDirection;
use drift::cpi::accounts::PlaceAndMake;
use drift::error::DriftResult;
use drift::instructions::optional_accounts::{load_maps, AccountMaps};
use drift::instructions::OrderParams;
use drift::math::casting::Cast;
use drift::math::safe_math::SafeMath;
use drift::program::Drift;
use drift::state::order_params::OrderParams;
use drift::state::perp_market_map::MarketSet;
use drift::state::state::State;
use drift::state::user::{MarketType as DriftMarketType, OrderTriggerCondition, OrderType};
Expand Down
2 changes: 1 addition & 1 deletion programs/jit-proxy/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anchor_lang::prelude::*;
use borsh::{BorshDeserialize, BorshSerialize};
use drift::instructions::PostOnlyParam as DriftPostOnlyParam;
use drift::state::order_params::PostOnlyParam as DriftPostOnlyParam;
use drift::state::user::MarketType as DriftMarketType;

#[derive(Clone, Copy, BorshSerialize, BorshDeserialize, PartialEq, Debug, Eq)]
Expand Down

0 comments on commit 7674b6c

Please sign in to comment.