How to Deploy Correctly

Deploying Ajna on EVM chains.

Intro

In this summary article, we cover the basics of deploying the Ajna Protocol onto the EVM chain of your choice. It's not as simple as pressing a couple of buttons and forgetting about it due to several considerations and requirements to be aware of. All of this information can be found on GitHub, in the Ajna-core Readme.md file.

Requirements

The full details are here. To summarize;

Third parties may deploy The Ajna Protocol so long as:

  1. No other functional and successful deployment of Ajna is available on the target chain.

  2. No modification to Solidity source files in the protocol is made, and no changes are made that conflict with the Business License.

  3. Before deployment, the canonical burn-wrapped AJNA token (bwAJNA) on Ethereum mainnet is bridged to the target chain using the L2’s canonical bridge.  For untrusted bridges, consider double-wrapping on L1.

  4. Upon deployment, the protocol is configured to use the bwAJNA token from step 3 on the target chain.

Deploying the Contracts

The full details are here. To summarize;

1. Create some bwAJNA.

Do so by going to ajnafi.com and navigating to any pool's "manage pool" section, then go to the "reserves", then interact with the "Wrap AJNA for L2s" widget on the bottom left.

2. Bridge bwAJNA to the target chain.

  1. Choose a bridge

  2. Bridge the token to the target chain.

3. Configure deployment to use the bridged bwAJNA token

Do so by setting theAJNA_TOKEN environment variable to the L2 token address.

4. Update Makerfile and run the deployment script

A deployment script exists to help automate the deployment of all the libraries and contracts.  Before running, update the Makefile with any specific configuration for the target chain, such as the --verifier-url.  You may need to create a new account and API key using the chain’s explorer GUI and set your ETHERSCAN_API_KEY accordingly.

5. Run the script

Use make deploy to run the script.

Getting Integrated

Recommendations

These make it easier for frontends to integrate your network's Ajna Protocol instance:

  1. Give them access to a node.

  2. Consider paying frontends to integrate your instance.

Frontend Apps & Info Sites

To get your deployment listed on frontends and info sites you will need to get in contact with them. The parties are under no obligation to list new deployments. In all cases, they will do their own verification that the deployment is done properly. Frontends may seek financial and/or infrastructure support (ETH-RPC node, subgraph deployment) for integrations. Below are some of the popular sites and contact info of their representatives.

Summer.fi

Frontend App
Summer.fi/ajna
https://discord.gg/summerfi
Contact Lucian | https://t.me/Lucianken

Builtbymom

Frontend App
ajnafi.com
https://discord.gg/zp8aJBkwBY | visit the ajnaficom-support channel
Contact Facu | https://t.me/saltyfacu

Block Analitica

Info site
info.ajna.finance
https://discord.gg/zp8aJBkwBY | visit the partnerships channel
Contact Keen | https://t.me/xcommanderkeen

Subscribe to The Ajna Protocol Blog
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.