# Manual site overrides for exchange.hacktivism.ch (GOA exploration currency).
# Same role as /etc/taler-merchant/merchant-overrides.conf on taler-hacktivism.
# Do not edit overrides.conf (tooling). Do not edit package conf.d defaults.
# No conf.d/zz-* drop-ins.

[exchange]
CURRENCY = GOA
CURRENCY_ROUND_UNIT = GOA:0.00000001
TINY_AMOUNT = GOA:0.00000001
DEFAULT_P2P_EXPIRATION = 14 days
BASE_URL = https://exchange.hacktivism.ch/
SERVE = tcp
PORT = 9011
MASTER_PUBLIC_KEY = TW6K5FXF81VYCAH0YWYX0SX98KBBSJ42VX27WAX01FTFH400QG10
# Secret: ATTRIBUTE_ENCRYPTION_KEY — not in this repo.
# Live: /etc/taler-exchange/secrets/exchange-attribute-encryption.secret.conf
# Mirror: sibling koopa-admin-secrets/containers/taler-exchange/secrets/
@inline-secret@ exchange-attribute-encryption ../secrets/exchange-attribute-encryption.secret.conf

# Wallet ToS/PP: short "No Terms Required" stubs (install via install_no_terms.sh).
# Without this, /terms returns 501 "not configured" and apps hang on accept/isPending.
# HTML uses same dark palette as merchant dual-currency terms (bump etag to refresh cache).
TERMS_DIR = ${TALER_DATA_HOME}terms/
TERMS_ETAG = no-terms-v2
PRIVACY_DIR = ${TALER_DATA_HOME}terms/
PRIVACY_ETAG = exchange-pp-swiss-v0

[currency-goa]
ENABLED = YES
name = "GOA exploration currency"
code = GOA
# SI display units. taler-exchange rejects scale keys outside [-8, 24] (no Ronna/Quetta).
fractional_input_digits = 8
fractional_normal_digits = 0
fractional_trailing_zero_digits = 0
alt_unit_names_are_symbols = NO
alt_unit_names = {"24":"Yotta-GOA","21":"Zetta-GOA","18":"Exa-GOA","15":"Peta-GOA","12":"Tera-GOA","9":"Giga-GOA","6":"Mega-GOA","3":"Kilo-GOA","0":"GOA","-1":"Deci-GOA","-2":"Centi-GOA","-3":"Milli-GOA","-6":"Micro-GOA","-7":"Deci-Micro-GOA","-8":"Atomic-GOA"}
common_amounts = "GOA:10 GOA:20 GOA:50 GOA:100 GOA:200 GOA:1000"

### Disable package demonstrator currencies (like merchant-overrides)
[currency-kudos]
ENABLED = NO

[currency-testkudos]
ENABLED = NO

### Regional bank (libeufin, x-taler-bank) — no IBAN
[exchange-account-1]
PAYTO_URI = payto://x-taler-bank/bank.hacktivism.ch/exchange?receiver-name=GOA%20Exchange
ENABLE_CREDIT = YES
ENABLE_DEBIT = YES
@inline-secret@ exchange-accountcredentials-1 ../secrets/exchange-accountcredentials-1.secret.conf
