Skip to content

Commit

Permalink
[core] denylist update (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
solonk8 authored Jun 17, 2024
1 parent e0da28e commit c5cb1b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ use std::ops::Deref;

use crate::errors::MMMErrorCode;

pub const CORE_DENY_LIST: [PluginType; 6] = [
pub const CORE_DENY_LIST: [PluginType; 4] = [
PluginType::FreezeDelegate,
PluginType::BurnDelegate,
PluginType::TransferDelegate,
PluginType::PermanentFreezeDelegate,
PluginType::PermanentTransferDelegate,
PluginType::PermanentBurnDelegate,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use solana_program::program::invoke;
use std::convert::TryFrom;

use crate::{
assert_valid_core_plugins,
constants::*,
deserialize_collection_asset,
errors::MMMErrorCode,
Expand Down Expand Up @@ -110,7 +109,6 @@ pub fn handler<'info>(
let collection = &ctx.accounts.collection;
let remaining_accounts = ctx.remaining_accounts;

assert_valid_core_plugins(asset)?;
let _ = check_allowlists_for_mpl_core(&pool.allowlists, asset, args.allowlist_aux)?;

let (total_price, next_price) = get_sol_total_price_and_next_price(pool, 1, true)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use solana_program::program::invoke_signed;
use std::convert::TryFrom;

use crate::{
assert_valid_core_plugins,
constants::*,
deserialize_collection_asset,
errors::MMMErrorCode,
Expand Down Expand Up @@ -105,7 +104,6 @@ pub fn handler<'info>(
]];
let collection = &ctx.accounts.collection;

assert_valid_core_plugins(asset)?;
let _ = check_allowlists_for_mpl_core(&pool.allowlists, asset, args.allowlist_aux)?;

let PoolPriceInfo {
Expand Down

0 comments on commit c5cb1b1

Please sign in to comment.