Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Feature: Get all pools with a specific token. #25

Open
0xKitsune opened this issue Dec 12, 2022 · 0 comments
Open

Feature: Get all pools with a specific token. #25

0xKitsune opened this issue Dec 12, 2022 · 0 comments
Labels

Comments

@0xKitsune
Copy link
Owner

Implement a function within the dex mod that gets all of the pools containing a target token address.

pub fn get_all_pools_containing_token(target_token: H160, dexes: Vec<Dex>, provider: Arc<Provider<P>>, ) -> Result<Vec<Pool>, CFFMError<P>>{
    for dex in dexes{
        //Get all pools starting from the dex creation block,
        //Filter out pools that do not have the target token
       //For all pools containing the target token, sync the pools 

    }

    // --snip--
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant