get_book_keys_for_iteration

Function get_book_keys_for_iteration 

Source
fn get_book_keys_for_iteration(
    exchange: &StablecoinExchange,
    base_token: Option<Address>,
    quote_token: Option<Address>,
) -> Result<Vec<B256>, DexApiError>
Expand description

Gets book keys to iterate over. If both base and quote are specified, returns only that book. Otherwise returns all book keys (filtering happens later during iteration).