Disable TokenAddBank instruction (#803)

It was unused for a long time and it should be reevaluated before being
used.

(cherry picked from commit f03944b5dd)
This commit is contained in:
Christian Kamm 2023-12-05 10:12:50 +01:00
parent eceef44a96
commit 04f0f55aa5
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ pub struct TokenAddBank<'info> {
#[account(
has_one = admin,
constraint = group.load()?.is_ix_enabled(IxGate::TokenAddBank) @ MangoError::IxIsDisabled,
constraint = group.load()?.multiple_banks_supported()
constraint = group.load()?.multiple_banks_supported(),
// Concerns are:
// - general reaudit
// - client support
// - potential_serum_tokens
constraint = group.load()?.is_testing(),
)]
pub group: AccountLoader<'info, Group>,
pub admin: Signer<'info>,