From 2939bc367d5253e2795cd8d406e8e23b4a0c4928 Mon Sep 17 00:00:00 2001 From: Corto Date: Sun, 10 Nov 2024 19:33:39 +0800 Subject: [PATCH] Add update pool aum --- src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 908b921..aa9c713 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -544,3 +544,19 @@ pub struct FinalizeLockedStake<'info> { #[account(address = SPL_TOKEN_PROGRAM_ID)] token_program: AccountInfo<'info>, } + +#[derive(Accounts)] +pub struct UpdatePoolAum<'info> { + /// #1 + #[account(mut)] + pub payer: Signer<'info>, + /// #2 + pub cortex: AccountLoader<'info, Cortex>, + /// #3 + #[account(mut)] + pub pool: AccountLoader<'info, Pool>, + // remaining accounts: + // pool.tokens.len() custody accounts (read-only, unsigned) + // pool.tokens.len() custody oracles (read-only, unsigned) + // 0..pool.tokens.len() custody trade oracles (read-only, unsigned) +}