1 unstable release
new 0.1.0 | Jun 30, 2024 |
---|
#72 in #across
35KB
526 lines
PoolSync
Utility crate for sycing defi pools from various protocols on the evm. Every project has the same boring pool sync boilerplate so this crate is meant to streamline the process and provide an easy and efficient way to sync all the pool variants you require.
Example Usage
use pool_sync::{PoolSync, PoolType};
#[tokio::main]
async fn main() -> Result<()> {
let url = "https://eth.merkle.io".parse()?;
let provider = ProviderBuilder::new().on_http(url);
let pool_sync = PoolSync::builder()
.add_pool(PoolType::UniswapV2)
.build();
let pools = pool_sync.sync_pools(&provider).await;
info!("Synced {} pools!", pools.len();
Ok(())
}
lib.rs
:
PoolSync: A library for synchronizing and managing various types of liquidity pools across different blockchains
This library provides functionality to interact with and synchronize data from various decentralized exchange protocols across multiple blockchain networks. It supports different pool types like Uniswap V2, Uniswap V3, and SushiSwap, and can work with multiple blockchain networks such as Ethereum and Base.
Dependencies
~29–42MB
~824K SLoC