Skip to content

Commit ca307a2

Browse files
committed
Add proxies for some core invoice cryptocurrencies
o Test invoice generation, and default decimals
1 parent 0922cf0 commit ca307a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+578
-77
lines changed

slip39/defaults.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,19 @@
169169

170170
SMTP_TO = "[email protected]"
171171
SMTP_FROM = "[email protected]"
172+
173+
# Invoice options. Presently, only highly-liquid ERC-20 tokens present in Ethereum AMM (Automatic
174+
# Market Maker) systems should be used in invoices, since we use 1Inch's "Off-Chain Oracle" smart
175+
# contract to get current market values. This prevents us from needing to "trust" anyone to obtain
176+
# current prices for cryptocurrencies -- if you have access to an Ethereum blockchain (either
177+
# locally or via an HTTPS API like Alchemy), then we can securely and reliably get current prices.
178+
# To avoid conflicts, we upper-case symbols, lower-case full names.
179+
INVOICE_CURRENCY = "USD"
180+
INVOICE_PROXIES = {
181+
"USD": "USDC",
182+
"us dollar": "USDC",
183+
"ETH": "WETH",
184+
"ethereum": "WETH",
185+
"BTC": "WBTC",
186+
"bitcoin": "WBTC",
187+
}

0 commit comments

Comments
 (0)