We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39789d8 commit 9a37795Copy full SHA for 9a37795
programs/drift/src/instructions/admin.rs
@@ -163,16 +163,6 @@ pub fn handle_initialize_spot_market(
163
)?;
164
}
165
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
176
initialize_token_account(
177
&ctx.accounts.token_program,
178
&ctx.accounts.spot_market_vault,
0 commit comments