Skip to content

Commit

Permalink
Add update pool aum
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrena-Corto committed Nov 10, 2024
1 parent cb6b69c commit 2939bc3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 2939bc3

Please sign in to comment.