Skip to content

initial commit with account, aum, swaps #1425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions programs/drift/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,12 @@ pub enum ErrorCode {
PythLazerMessagePriceFeedMismatch,
#[msg("InvalidLiquidateSpotWithSwap")]
InvalidLiquidateSpotWithSwap,
#[msg("Unable to load Constituent")]
UnableToLoadConstituent,
#[msg("Constituent wrong mutability")]
ConstituentWrongMutability,
#[msg("Constituent not found")]
ConstituentNotFound,
}

#[macro_export]
Expand Down
3 changes: 3 additions & 0 deletions programs/drift/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ pub mod swift_user;
pub mod traits;
pub mod user;
pub mod user_map;
pub mod vault;
pub mod vault_constituent;
pub mod vault_constituent_map;
Loading
Loading