TL;DR
We propose to open HRMP communication between Astar Network and Equilibrium. This will require actions on both chains.
Summary
We propose to open a bi-directional channel between Astar Network and Equilibrium. The primary use cases will be:
- To transfer Astar’s native token (ASTR) and Astar’s ecosystem assets to Equilibrium to integrate with Equilibrium’s suite of DeFi products.
More specifically, users would be able to use their ASTR tokens and other Astar’s ecosystem assets on Equilibrium to:
-
stake in money market to earn yields,
-
collateralize them to borrow other crypto assets (including stablecoins with Equilibrium’s curve-like stableswap),
-
collateralize them to margin trade on Equilibrium’s fully on-chain orderbook DEX (e.g. margin trade DOT/EQD pair without having to own either one of these tokens)
-
Equilibrium’s native token (EQ) and its overcollateralized native stablecoin EQD can be transferred to Astar Network to be used in the ecosystem, including the protocols that are built on top of Astar Network.
Proposal
There is no on-chain proposal yet. The proposal created in this forum acts as an official proposal between Equilibrium and Astar Network.
Technical details:
The procedure for opening the channels is as follows:
- Equilibrium initializes a proposal to open the Equilibrium-to-Astar Network HRMP channel via Astar forum.
- Wait until the proposal on step 1 gets approved & enacted.
- Onboard Equilibrium’s testnet on the Rococo relay chain and exchange public endpoints and parachain-ids.
- Wait until onboarding was successful on testnet.
- Astar Network proposes to accept the Equilibrium-to-Astar Network HRMP channel and open a Astar Network-to-Equilibrium HRMP channel via [Astar MuliSig Governance Batch call].
- Wait until the proposal on step 5 gets approved & enacted.
- Equilibrium accepts Astar Network-to-Equilibrium HRMP channel.
- Wait for another session on Polkadot for the change to be effective.
The extrinsics that need to be sent with xcm messages to they can be executed on the relay chain , are:
For step 1: hrmp.hrmpInitOpenChannel(recipient: 2006, proposedMaxCapacity: 1000, proposedMaxMessageSize: 102400) , which hex-encoded as 0x3c00d6070000e803000000900100
For step 3: The first call is hrmp.hrmpAcceptOpenChannel(sender: 2011) , second call is hrmp.hrmpInitOpenChannel(recipient: 2011, proposedMaxCapacity: 1000, proposedMaxMessageSize: 102400) , so the final batch call hex-encoded as 0x1a00083c01db0700003c00db070000e803000000900100
For step 5: hrmp.hrmpAcceptOpenChannel(sender: 2006) , which hex-encoded as 0x3c01d6070000
The proposedMaxCapacity and proposedMaxMessageSize are set to the values of Polkadot’s configuration.activeConfig.hrmpChannelMaxCapacity and configuration.activeConfig.hrmpChannelMaxMessageSize values, respectively.
These extrinsics need to be called with the parachain’s sovereign account as the origin. To achieve this, on the Equilibrium side we will use polkadot-xcm pallet to send XCM messages to the relay chain, by executing the following extrinsic from the parachain. Astar Network should make an open request call and an accept request call with its pallet.
As a prerequisite, the parachain’s sovereign account must contain at least 10 DOT to be locked as collateral (5 for each channel direction), plus some DOT to pay for XCM execution fees.