Closed tommyzhao451 closed 5 months ago
Thanks, Tommy! I made some further changes:
factoryOrPoolDeployer
into factory
and optional poolDeployer
because we do actually need PancakeSwap's factory in addition to its pool deployer.amms
so we can specify that keys are AutomatedMarketMaker enums, and it is easier this way in case we need to add another AMM in the future.
This PR only changes the following 4 files and the remainder changes are results of changes from these 4 files: src/chain.ts src/interfaces/interfaces.ts src/helper/payload/index.ts src/viem/payload.ts
This PR currently hardcodes AMM map accesses to be UNISWAP, but can be dynamically decided by index access type in followup PRs.