use carbon_core::{borsh, CarbonDeserialize};
#[derive(
CarbonDeserialize, Debug, serde::Serialize, serde::Deserialize, PartialEq, Eq, Clone, Hash,
)]
#[carbon(discriminator = "0x6a85a0cec1abc0c2")]
pub struct SetUserStatusToBeingLiquidated {}
pub struct SetUserStatusToBeingLiquidatedInstructionAccounts {
pub state: solana_pubkey::Pubkey,
pub user: solana_pubkey::Pubkey,
pub authority: solana_pubkey::Pubkey,
}
impl carbon_core::deserialize::ArrangeAccounts for SetUserStatusToBeingLiquidated {
type ArrangedAccounts = SetUserStatusToBeingLiquidatedInstructionAccounts;
fn arrange_accounts(
accounts: &[solana_instruction::AccountMeta],
) -> Option<Self::ArrangedAccounts> {
let [state, user, authority, _remaining @ ..] = accounts else {
return None;
};
Some(SetUserStatusToBeingLiquidatedInstructionAccounts {
state: state.pubkey,
user: user.pubkey,
authority: authority.pubkey,
})
}
}