vega-frontend-monorepo/specs/1003-TRAN-transfer.md

2.8 KiB

Transfer

Transfer Window

  • Must be able to open transfer window through transfer button under key, account history page and collateral options (1003-TRAN-001)

  • Must be able to close the window with the x (1003-TRAN-002)

  • Must display a message showing obfuscated key that funds will be transferred from (1003-TRAN-003)

  • Must each field has their label. Vega key, Asset, Amount (1003-TRAN-004)

Vega Key

  • Must if the user has multiple keys they must be able to swap between dropdown and manual entry (1003-TRAN-005)

  • Must if the user has multiple keys they must be able to select from their list of keys(1003-TRAN-006)

Asset

  • Must display a drop down with all assets in the portfolio (1003-TRAN-007)

  • Must the holdings of each asset is displayed (1003-TRAN-008)

  • Must i can select any available assets and selected asset is displayed (1003-TRAN-009)

  • Must selected asset shortname is displayed in the amount field (1003-TRAN-010)

Validation

  • Must cannot choose amount over current collateral. Message is displayed (1003-TRAN-011)

  • Must display "required" message on each field if left blank when clicking button "Confirm Transfer" (1003-TRAN-012)

  • Must display "Invalid vega key" message on Vega Key field if entered key doesn't pass validation(1003-TRAN-013)

  • Must "Value below minimum" message is shown if amount is lower than minimum(1003-TRAN-014)

Transfer

  • Must display tooltip for "Amount to be transferred" when hovered over.(1003-TRAN-018)

  • Must display tooltip for "Total amount (with fee)" when hovered over.(1003-TRAN-019)

  • Must With all fields entered correctly, clicking "confirm transfer" button will start transaction(1003-TRAN-023)

Transfer page

  • Visiting the page with a query param ?assetId=XYZ should load the page with that asset selected if that asset exists (1003-TRAN-024)