XRT/HOLLAR pair on Hydration: HRMP channels with Robonomics and XRT registration

Robonomics (parachain 3388) would like to bring XRT to Hydration and open an XRT/HOLLAR pair. For that we ask Hydration governance to open HRMP channels with Robonomics and register XRT. This post is for discussion before the Hydration referendum goes on-chain.

Why

Robonomics is an IoT cloud on Polkadot: devices keep their state and data on the chain and pay for it in XRT. Today XRT trades mostly on Ethereum (Uniswap), and Polkadot users have no place to swap it inside Polkadot. HOLLAR gives a stable pair, and Hydration is where Polkadot liquidity already lives.

Robonomics side: referendum #6 is on-chain

Robonomics referendum #6 (Root track) is submitted and its decision deposit is placed. Voting starts after the 12-hour prepare period. It does two things:

  1. Moves 112 DOT from the Robonomics account on Asset Hub to its sovereign account on the relay, to cover the channel deposits.
  2. Twenty blocks later, asks the relay to open the channel Robonomics → Hydration (3388 → 2034), capacity 25, message size 102400.

Vote on Robonomics: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot.rpc.robonomics.network#/referenda (referendum #6)

Preimage hash 0x7c821549a847a58229454afac5f20b4f410893c80c1cd2cb6453c66f85b4cc3d (208 bytes). We ran it through the dry-run APIs on Robonomics, Asset Hub and the relay before submitting: the DOT arrive on the relay and the channel request goes through.

Steps

  1. Robonomics referendum #6: open the channel 3388 → 2034 (above).
  2. Hydration referendum (Root, same shape as #214), one utility.batchAll:
    • accept the channel 3388 → 2034;
    • open the channel 2034 → 3388;
    • assetRegistry.register for XRT.
  3. Robonomics referendum: accept the channel 2034 → 3388.
  4. Test transfer of XRT both ways, then an XYK pool XRT/HOLLAR.

XRT registration

Field Value
Name / symbol Robonomics / XRT
Location { parents: 1, interior: X1(Parachain(3388)) } (same as on Asset Hub)
Decimals 9
Existential deposit 0.1 XRT (≈ $0.015)
Sufficient yes
XCM rate limit none

Channel parameters

Capacity 25, message size 102400, the current relay limits (hrmpChannelMaxCapacity = 25). A request with a larger capacity inside an XCM Transact is rejected by the relay without a visible error, so the channel never opens; our dry-run shows OpenChannelRequested with 25 and nothing with 1000.

Preimage of the Hydration referendum: 0x18ea0df165eec72ebeac0dccae103fc53b942c366b3df83f843e7abadd014f30 (233 bytes). We can note it on-chain, or the Hydration team can rebuild it from the table above.

The pool

We will start the XYK pool at the Uniswap price, about ~ 2-3k XRT, and add to it over time in the same proportion.

Links

Questions and changes to the parameters are welcome here.

Reply
Up
Share
Comments