Skip to content

Commit 7a5ea1f

Browse files
committed
fixed pool setup bug
1 parent 7141e84 commit 7a5ea1f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ async fn main() -> Result<()> {
4040

4141
// Create pool instance
4242
let pool = Pool::new(pool_address, token_a, token_b, tick_spacing, Arc::new(provider.clone())).await?;
43-
let pool = Arc::new(pool);
43+
let mut pool = Arc::new(pool);
44+
Arc::get_mut(&mut pool).unwrap().set_provider(provider.clone());
4445

4546
// Create liquidity provider
4647
let liquidity_provider = Arc::new(LiquidityProvider::new(

0 commit comments

Comments
 (0)