You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// CHECK: This is just a PDA controlled by the program. There is currently no way to withdraw funds from it.
270
270
#[account(mut)]
271
271
pubtreasury:AccountInfo<'info>,
272
-
#[account(init, payer =payer, space = PriceUpdateV1::LEN)]
272
+
/// The contraint is such that either the price_update_account is uninitialized or the payer is the write_authority.
273
+
/// Pubkey::default() is the SystemProgram on Solana and it can't sign so it's impossible that price_update_account.write_authority == Pubkey::default() once the account is initialized
/// CHECK: This is just a PDA controlled by the program. There is currently no way to withdraw funds from it.
290
292
pubtreasury:AccountInfo<'info>,
291
-
#[account(init, payer = payer, space = PriceUpdateV1::LEN)]
293
+
/// The contraint is such that either the price_update_account is uninitialized or the payer is the write_authority.
294
+
/// Pubkey::default() is the SystemProgram on Solana and it can't sign so it's impossible that price_update_account.write_authority == Pubkey::default() once the account is initialized
0 commit comments