parallel icon indicating copy to clipboard operation
parallel copied to clipboard

Test Ledger Parallel on Ledger Live (dev mode)

Open mclyk opened this issue 2 years ago • 9 comments

refer #1819

mclyk avatar Jul 14 '22 07:07 mclyk

Prepare:

1. Open Ledger Live desktop APP, turn on dev mode

image

2. Install parallel app

image

3.1 config setting (for Nano S)

:white_check_mark: This is for Nano S, if you are using Nano X, try attaching it in polkadot.js extension image

3.2 connect Ledger device (for Nano S)

:warning: Parallel app should be open and be ready in ledger device image

4.1 connect with extension (for Nano X)

image

4.2 connect with extension (for Nano X)

:warning: connect Ledger device with computer and open "Parallel app" on it, then connect with extension. image

mclyk avatar Jul 14 '22 07:07 mclyk

Precondition

Ledger Device: Nano S App Version: v17.189.0 Parallel Parachain: v189 Portal: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.parallel.fi#/extrinsics

System

  • [x] Remark
  • [x] Remark with event

Utility

  • [x] Batch
  • [x] Batch all

Balances

  • [x] Transfer
  • [x] Transfer keep alive

Assets

  • [x] Transfer
  • [ ] Transfer keep alive (failed due to callfilter)

XTokens

  • [x] Transfer

Vesting

  • [x] Claim
  • [x] Vested transfer
  • [x] Claim for

Loans

  • [x] Mint
  • [x] Collateral asset
  • [x] Borrow
  • [x] Repay borrow
  • [x] Repay borrow all
  • [x] Redeem all

Crowdloans

  • [x] contribute

LiquidStaking

  • [x] Stake
  • [x] Unstake /loans
  • [x] Unstake /relaychain

AMM

  • [x] Add liquidity

AMMRoute

  • [x] Swap exact tokens for token

mclyk avatar Jul 14 '22 07:07 mclyk

Issues

1 can not connect by polkadot extension

it's Nano S that can not connect, however Nano X can. image

2 test on Heiko network

Not support on Heiko?

3 connect is not stable

paralle app in ledger device will auto back to closed status, image

4 failed via polkadot.js extension

image image

mclyk avatar Jul 14 '22 07:07 mclyk

Decimal issues about token:

1 xtoken.transfer

image image image it should be 0.1 DOT, let's show it "1000000000" without unit.

2 crowdloans.contribute

image image it's 3 DOT actually, equal to `30000000000` and method in crowdloans pallet, like `redeem`,`refundFor` should be updated too.

3 farming pallet

decimal all shows in PARA.

mclyk avatar Jul 19 '22 07:07 mclyk

Test Ledger on Parallel DAPP Ledger Device: Nano X Test Portal: https://app.parallel.fi/#/overview Endpoint: wss://rpc.parallel.fi

Overview

Relaychain Balance

:x: Transfer to Parallel (Not supported because of Ledger Polkadot App)

Parallel Balance

  • [x] Send
  • [x] Withdraw
  • [x] Claim

Swap

swap

  • [x] swap

liquidity

  • [x] add liquidity
  • [x] withdraw liquidity

Money Market

lend

  • [x] lend
  • [x] use as collateral
  • [x] withdraw
  • [x] withdraw_all

borrow

  • [x] borrow
  • [x] repay
  • [x] repay_all

Rewards

  • [x] claim

Stake

stake

:x: stake

unstake

:x: unstake.loans :x: unstake.relaychain

Crowdloan

:x: deposit to parallel (Not supported because of Ledger Polkadot App)

  • [x] contribute

DAO Fi

:x: streaming.create (Method not supported)

mclyk avatar Jul 19 '22 08:07 mclyk

1. Not an issue for parallel ledger app, a snapshot here

Not supported by Ledger Polkadot App image

2. gas fee too high

image

3. crowdloan

"Deposit DOT To Parallel" will not actually work, because while users using Parallel Ledger App, they can not transfer DOT from polkadot to parachain, "DOT DMP transfer" can only signed in Polkadot Ledger App and not support for now. image

mclyk avatar Jul 19 '22 08:07 mclyk

1. stake without supply staked DOT to Money Market

image image

2. stake and supply staked DOT to Money Market

image

image

3. connecting issues

image

4. unstake

image image

5. instant unstake

image image

mclyk avatar Jul 19 '22 08:07 mclyk

Pallets need to enable nesting:

  • LiquidStaking, https://github.com/parallel-finance/parallel/tree/master/pallets/liquid-staking
  • Loans, https://github.com/parallel-finance/parallel/tree/master/pallets/loans

mclyk avatar Jul 20 '22 07:07 mclyk

FYI team I've added a new user guide to the Parallel gitbook here: https://parallelfi.gitbook.io/parallel-finance/polkadot-network/parallel-x-ledger-hardware-wallet

DRatParallel avatar Jul 22 '22 13:07 DRatParallel