Skip to content

Ledger - read-only is detected as no wallet #11458

@gomesalexandre

Description

@gomesalexandre

Overview

... resulting in different params being used for Near Intents (same as if you had no wallet connected at all) and eventually a diff quote, i.e (note different recipient type and refundType)

Ledger connected:

{
  "dry": false,
  "swapType": "EXACT_INPUT",
  "slippageTolerance": 50,
  "originAsset": "nep141:tron.omft.near",
  "destinationAsset": "nep141:tron-d28a265909efecdcee7c5028585214ea0b96f015.omft.near",
  "amount": "71607847",
  "depositType": "ORIGIN_CHAIN",
  "refundTo": "T***************HjP",
  "refundType": "ORIGIN_CHAIN",
  "recipient": "T***************HjP",
  "recipientType": "DESTINATION_CHAIN",
  "deadline": "2025-12-17T23:36:12.520Z",
  "referral": "shapeshift",
  "appFees": [
    {
      "recipient": "f471d0b0f90593d85125f38aaf5458748d6f23fd5b437b844d293d8e87557070",
      "fee": 55
    }
  ]
}

Ledger read-only (disconnected):

{
  "dry": false,
  "swapType": "EXACT_INPUT",
  "slippageTolerance": 50,
  "originAsset": "nep141:tron.omft.near",
  "destinationAsset": "nep141:tron-d28a265909efecdcee7c5028585214ea0b96f015.omft.near",
  "amount": "71610411",
  "depositType": "ORIGIN_CHAIN",
  "refundTo": "check-price",
  "refundType": "INTENTS",
  "recipient": "check-price",
  "recipientType": "INTENTS",
  "deadline": "2025-12-17T23:36:17.267Z",
  "referral": "shapeshift",
  "appFees": [
    {
      "recipient": "f471d0b0f90593d85125f38aaf5458748d6f23fd5b437b844d293d8e87557070",
      "fee": 55
    }
  ]
}

References and additional details

N/A

Acceptance Criteria

  • Ledger read-only yields the same req params as Ledger connected

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions