Skip to content

Commit 9a37795

Browse files
committed
program: remove duplicate immutable owner code
1 parent 39789d8 commit 9a37795

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

programs/drift/src/instructions/admin.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,6 @@ pub fn handle_initialize_spot_market(
163163
)?;
164164
}
165165

166-
let is_token_2022 = *ctx.accounts.spot_market_mint.to_account_info().owner == Token2022::id();
167-
if is_token_2022 {
168-
initialize_immutable_owner(&ctx.accounts.token_program, &ctx.accounts.spot_market_vault)?;
169-
170-
initialize_immutable_owner(
171-
&ctx.accounts.token_program,
172-
&ctx.accounts.insurance_fund_vault,
173-
)?;
174-
}
175-
176166
initialize_token_account(
177167
&ctx.accounts.token_program,
178168
&ctx.accounts.spot_market_vault,

0 commit comments

Comments
 (0)