From 6addd658a8a7e230ccb5fa7e6fef980a694379ea Mon Sep 17 00:00:00 2001 From: Corto Date: Fri, 1 Nov 2024 10:11:50 +0800 Subject: [PATCH] Add staking type enum --- src/types.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types.rs b/src/types.rs index 594d42c..62d44de 100644 --- a/src/types.rs +++ b/src/types.rs @@ -517,6 +517,13 @@ impl TryFrom for Side { } } +#[derive(PartialEq, Copy, Clone, Debug, Default)] +pub enum StakingType { + #[default] + LM = 1, + LP = 2, +} + #[account(zero_copy)] #[derive(Default, Debug, PartialEq, AnchorSerialize, AnchorDeserialize)] #[repr(C)]