diff options
| author | Adam Soltys <[email protected]> | 2024-01-02 15:18:58 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-02 15:18:58 -0800 |
| commit | c4a7b68048d389cac3c68797ce4a44bca7979d17 (patch) | |
| tree | 81db583c95094fda89fc10559dcc63e00cdb9b5c /src/lib | |
| parent | 4e37c853b1014637f12455c44cb49861343ed918 (diff) | |
| download | coinos-ui-c4a7b68048d389cac3c68797ce4a44bca7979d17.tar.gz coinos-ui-c4a7b68048d389cac3c68797ce4a44bca7979d17.zip | |
liquid payments
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index 9dbdc2ab..738413bf 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -287,3 +287,17 @@ export let closest = (a, n) => a.reduce((prev, curr) => Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev ); + +export let isLiquid = (text) => + text.startsWith("Az") || + text.startsWith("lq1") || + text.startsWith("VJL") || + text.startsWith("VT") || + text.startsWith("XR") || + text.startsWith("XC") || + ((text.startsWith("H") || text.startsWith("G") || text.startsWith("Q")) && + text.length === 34) || + (text.startsWith("ert1q") && text.length === 43) || + (text.startsWith("ex1q") && text.length === 42) || + text.startsWith("el1qq") || + text.startsWith("lq1qq"); |
