darkforestry / amms-rs

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

balancer pools #143

Open iht76 opened 8 months ago

iht76 commented 8 months ago

Describe the feature you would like

How difficult would it be to add different types of pools like balancer and solidly for example?

Additional context

No response

cuongquangnam commented 8 months ago

Yeah, I am also curious about the possibility of supporting other types of pools

0xKitsune commented 8 months ago

Thanks for opening an issue. Adding an AMM is documented in this guide. The guide may need some updating but the general steps are still the same. For example, instead of adding the new AMM to the AMM enum, you can just add it with the amm! macro here. Let me know if you have any questions about the implementation.