diff options
| author | Adam Soltys <[email protected]> | 2026-10-08 22:06:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-08 22:06:49 -0700 |
| commit | 3a11c993baa2fc3a3b0bb754e19d783f5b684912 (patch) | |
| tree | 223c3960c15eeb1b0ea7537ab1a6087f1f1e4fa3 /src/features/names.js | |
| parent | 408395bf05c2bb8a129a19392afa356798d98a87 (diff) | |
| download | coinosv3-3a11c993baa2fc3a3b0bb754e19d783f5b684912.tar.gz coinosv3-3a11c993baa2fc3a3b0bb754e19d783f5b684912.zip | |
POS terminals ring up in the owner's currency: the app sends its currency when minting a terminal token (it sent none, so every terminal priced sales in USD and a $0.03 sale paid out as $0.04 CAD), and a new token retunes the terminals already paired to that name
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/features/names.js')
| -rw-r--r-- | src/features/names.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/features/names.js b/src/features/names.js index 7e51c8c..43d4895 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -19,6 +19,7 @@ import { bech32 } from '@scure/base'; import { isArkAddress } from './ark.js'; import { getNetwork } from '../api.js'; import { t } from '../i18n.js'; +import { getCurrency } from '../rates.js'; const REGISTRAR = 'https://names.coinos.io'; // Claims are namespaced by network: staging's mutinynet wallets get @@ -521,7 +522,9 @@ export function namesFeature(ctx) { // token goes straight into the terminal's config at coinos.io/flash. function posCard(st) { const tok = ui.posToken; - const body = () => ({ name: st.name, domain: st.domain || DOMAIN() }); + // The terminal rings sales up in the owner's currency (the registrar retunes + // already-paired terminals to it on every new token, too). + const body = () => ({ name: st.name, domain: st.domain || DOMAIN(), currency: getCurrency() }); return h('div', { class: 'card col', 'data-key': 'pos' }, h('h3', {}, t('namesPos')), h('p', { class: 'small muted', style: 'margin:0' }, t('namesPosHow')), |
