Links

How To Guides

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:
  1. 1.
    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.
  2. 2.
    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
  3. 3.
    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.
  4. 4.
    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.
  5. 5.
    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
  6. 6.
    (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.
  7. 7.
    Test your trades on the new chain. You can run trades through the Hashflow UI to ensure trades on the new chain process successfully.
  8. 8.
    Success! You're on a new chain 🥳.