vegaprotocol / frontend-monorepo

Toolkit for building apps that interact with Vega
https://vega.xyz
MIT License
21 stars 14 forks source link

Fetch rejection reason in stop order TX details #6363

Open JonRay15 opened 2 weeks ago

JonRay15 commented 2 weeks ago

The Chore

Fetch rejection reason in stop order TX details

Tasks

Additional details / background info

https://explorer.fairground.wtf/txs/0x01073A3B988E64CD8496A2DE244DC031822EB8A395563D05F0D22BAE2C175E40

{
  "data": {
    "stopOrder": {
      "rejectionReason": "REJECTION_REASON_STOP_ORDER_NOT_CLOSING_THE_POSITION"
    }
  }
}
edd commented 2 weeks ago

Currently every stop order with a status of REJECTED as a rejectionReason of REJECTION_REASON_UNSPECIFIED. Pausing this bug until, perhaps, testnet explorer has caught up.