HomePhabricator

[Cashtab] Update getSlpSendTargetOutputs to match optimizations of…

Description

[Cashtab] Update getSlpSendTargetOutputs to match optimizations of getSlpBurnTargetOutput

Summary:
Depends on D15100

  • Fix typo in toLocaleString() implementation
  • Use tokenUtxo.slpToken.amount which, in the chronik utxo object, is already undecimalized (so save the op)

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15101

Details

Provenance
bytesofmanAuthored on Jan 5 2024, 18:29
bytesofmanPushed on Jan 10 2024, 14:00
Reviewer
Restricted Project
Differential Revision
D15101: [Cashtab] Update getSlpSendTargetOutputs to match optimizations of getSlpBurnTargetOutput
Parents
rABCe4e6f0954be9: [Cashtab] Add function to generate burn targetOutputs
Branches
Unknown
Tags
Unknown