darkforestry / amms-rs

A Rust library to interact with automated market makers across EVM chains.
438 stars 117 forks source link

Bug: Cannot get pool data for ZKSyncERA chain #180

Closed monroeeee closed 1 month ago

monroeeee commented 3 months ago

Describe the bug

UniswapV2Pool::new_from_address(pair_address: pair, fee: 0, middleware) is not working on the ZKSyncERA chain. There is a ProviderError when getting pool data: (code: 3, message: Failed to serialize transaction: toAddressIsNull, data: None)

0xOsiris commented 3 months ago

Describe the bug

UniswapV2Pool::new_from_address(pair_address: pair, fee: 0, middleware) is not working on the ZKSyncERA chain.

There is a ProviderError when getting pool data: (code: 3, message: Failed to serialize transaction: toAddressIsNull, data: None)

Can you share a repro?

0xKitsune commented 1 month ago

Closing this issue for now due to it being stale. Feel free to reopen if you are still having issues!