https://github.com/BuiltByMom/dapp

Ajna

Ajnafi UI

  1. Clone repo https://github.com/BuiltByMom/dapp and run yarn to install it
  2. Add new chain to https://github.com/BuiltByMom/dapp/blob/ae128c521dee4c95a8931e5d7d03eedd2d2a715b/src/constants/config.ts#L4 file
    1. Add chain to *SUPPORTED_CHAINS* constant, either from viem, either create a new one with defineChain
      1. prefix is needed for URI chain part
      2. Redeclaring *rpcUrls* is needed if you want custom RPC to be used for users
    2. Add chain to networks constant with: ERC20PoolFactory, ERC721PoolFactory, PositionManager, PoolUtils, AjnaToken and LenderHelper
      1. Add WETH address if it exists on the chain and it it’s standard implementation (ie has deposit and withdraw functions)
  3. Add env variables for custom RPC (optional) and Subgraph
  4. Run yarn start to run the dapp and check if everything loads
  5. Create a PR with a new chain to the repo