Page MenuHomePhabricator

[Cashtab] Improve modal for FIRMA redeems
ClosedPublic

Authored by bytesofman on May 30 2025, 13:09.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC67e279b7e82c: [Cashtab] Improve modal for FIRMA redeems
Summary

Unlike XECX, users cannot leave $FIRMA redeem offers up pending a 24 hr period. FIRMA price is dynamic, so an offer that is not instantly picked up will soon become mispriced.

If the hot wallet is unable to redeem $FIRMA, disable redeem and show an error.

Test Plan

npm test

normal $FIRMA redeem

image.png (282×313 px, 33 KB)

$FIRMA redeem exceeds hot wallet balance

image.png (282×313 px, 32 KB)

(NB the numbers do not make sense here as I messed with the conditional rendering to get the screenshot, see unit tests for expected behavior here)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable