A variety of how-tos for common market making needs
Supporting other chains
You've finished setting up your market maker on Ethereum but want to expand to market making on other chains? Simply follow these steps:
Contact the hashflow team (via Telegram/Discord) and tell us which chains you'd like to support. We'll then add them to your market making config which controls the market makers we request for trades on each chain.
Create a new pool. You will need to create a pool for the new chain. The steps are identical to the pool you created before. If you're using an EOA:
You can re-use the EOA but will need a new pool
You'll also need to add allowances for the new pool to your EOA
Support 'getPairs'for the new chain. Extend your getPairs logic to also publish the pairs that you will be market making on the new chains. We need this to route trades your way.
Support 'RFQ' for the new chain. Extend your market making logic to respond with quotes for RFQs on the new chain. In your quotes, include the new pool you created.
Support 'signQuote' for the new chain. Extend your signature logic to work for the new chain. The only difference here is that you need to sign with the applicable pool/EOA
(Optional) Support priceLevels on the new chain. If you'd like to receive traffic from validators (e.g. 1inch, zerion) on the new chain, you'll need to publish price levels for that chain as well.
Test your trades on the new chain. You can run trades through the Hashflow UI to ensure trades on the new chain process successfully.