Skip to main content

reflect_sdk/generated/types/
redeem.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6//!
7
8use solana_pubkey::Pubkey;
9use borsh::BorshSerialize;
10use borsh::BorshDeserialize;
11
12#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
13#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
14pub struct Redeem {
15/// Amount of Stable consumed.
16pub stable_amount: u64,
17/// Total stable in circulation at start.
18pub start_stable_supply: u64,
19/// Amount of SPL unlocked.
20pub spl_amount: u64,
21/// Mint of the SPL.
22#[cfg_attr(feature = "serde", serde(with = "serde_with::As::<serde_with::DisplayFromStr>"))]
23pub mint: Pubkey,
24/// Price of the SPL.
25pub spl_price: i64,
26/// Index of the stratgey.
27pub strategy_idx: u8,
28}
29
30