diff --git a/.env.example b/.env.example index d4871ad..e6ff1ce 100644 --- a/.env.example +++ b/.env.example @@ -39,5 +39,7 @@ DEFAULT_MPESA_ASSET=cUSD MPESA_BEARER_TOKEN=eyJeSIsInRcCI6IkpXVCJ.yJwdWJsaWNLZXkiOiIwrrrrrr MPESA_ONRAMP_BASE=https://pretium.v1.grassecon.net -# Known stable voucher addresses (USDT, USDm) -STABLE_VOUCHER_ADDRESSES=0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e,0x765DE816845861e75A25fCA122bb6898B8B1282a +# Known stable voucher addresses (USDm, USDâ‚®) +STABLE_VOUCHER_ADDRESSES=0x765DE816845861e75A25fCA122bb6898B8B1282a,0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e +DEFAULT_STABLE_VOUCHER_ADDRESS=0x765DE816845861e75A25fCA122bb6898B8B1282a +DEFAULT_STABLE_VOUCHER_DECIMALS=18 diff --git a/config/config.go b/config/config.go index 697bc15..aee9439 100644 --- a/config/config.go +++ b/config/config.go @@ -142,3 +142,11 @@ func StableVoucherAddresses() []string { return parsed } + +func DefaultStableVoucherAddress() string { + return env.GetEnv("DEFAULT_STABLE_VOUCHER_ADDRESS", "") +} + +func DefaultStableVoucherDecimals() string { + return env.GetEnv("DEFAULT_STABLE_VOUCHER_DECIMALS", "") +}