Skip to content

Commit

Permalink
feat: add permissionless token listing
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed May 5, 2024
1 parent 7dee90b commit b5a5372
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/interfaces/IMarketManager.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ pub trait IMarketManager<TContractState> {
// Whether market is whitelisted for creation.
fn is_market_whitelisted(self: @TContractState, market_id: felt252) -> bool;

// Whether token is whitelisted (allows creation of unowned and non-strategy markets).
fn is_token_whitelisted(self: @TContractState, token: ContractAddress) -> bool;

// Get base token for market.
fn base_token(self: @TContractState, market_id: felt252) -> ContractAddress;

Expand Down Expand Up @@ -440,13 +437,6 @@ pub trait IMarketManager<TContractState> {
// * `market_ids` - array of market ids
fn whitelist_markets(ref self: TContractState, market_ids: Array<felt252>);

// Whitelist tokens.
// Callable by owner only.
//
// # Arguments
// * `tokens` - array of token addresses
fn whitelist_tokens(ref self: TContractState, tokens: Array<ContractAddress>);

// Sweeps excess tokens from contract.
// Used to collect tokens sent to contract by mistake.
//
Expand Down

0 comments on commit b5a5372

Please sign in to comment.