Skip to content

Commit fe46a1c

Browse files
Merge pull request #272 from blockchain/mbratfisch-bc-patch-2
Add mapping
2 parents 1d0d58c + bdcb150 commit fe46a1c

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

custody.json

+27
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,15 @@
15391539
"minWithdrawal": 0
15401540
}
15411541
},
1542+
{
1543+
"symbol": "USDC.ARBETH",
1544+
"displaySymbol": "USDC",
1545+
"type": "ERC20",
1546+
"nabuSettings": {
1547+
"custodialPrecision": 6
1548+
},
1549+
"hwsSettings": null
1550+
},
15421551
{
15431552
"symbol": "USDC.BASEETH",
15441553
"displaySymbol": "USDC",
@@ -1563,6 +1572,24 @@
15631572
"minWithdrawal": 0
15641573
}
15651574
},
1575+
{
1576+
"symbol": "USDC.OETH",
1577+
"displaySymbol": "USDC",
1578+
"type": "ERC20",
1579+
"nabuSettings": {
1580+
"custodialPrecision": 6
1581+
},
1582+
"hwsSettings": null
1583+
},
1584+
{
1585+
"symbol": "USDC.SOL",
1586+
"displaySymbol": "USDC",
1587+
"type": "SOLANA_TOKEN",
1588+
"nabuSettings": {
1589+
"custodialPrecision": 6
1590+
},
1591+
"hwsSettings": null
1592+
},
15661593
{
15671594
"symbol": "USDT",
15681595
"displaySymbol": "USDT",

groups.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
{
33
"parentSymbol": "USDC",
44
"childSymbols": [
5-
"USDC.MATIC",
6-
"USDC.BASEETH"
5+
"USDC.BASEETH",
6+
"USDC.OETH",
7+
"USDC.SOL",
8+
"USDC.ARBETH"
79
]
810
},
911
{
1012
"parentSymbol": "USDT",
1113
"childSymbols": [
12-
"USDT.MATIC",
13-
"USDT.TRX"
14+
"USDT.TRX",
15+
"USDT.SOL"
1416
]
1517
},
1618
{

scripts/check-lists.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def check_groups(groups: List[Group], custody_currencies, prices):
175175
yield Error(symbol, f"too much price diff between parent and child")
176176
if not found_in_custody:
177177
yield Error(symbol, f"defined in groups.json but not in custody.json")
178-
if parent_custody.nabuSettings.custodialPrecision != found_in_custody.nabuSettings.custodialPrecision:
178+
elif parent_custody.nabuSettings.custodialPrecision != found_in_custody.nabuSettings.custodialPrecision:
179179
yield Error(symbol, f"expected same custodialPrecision as part of the same group")
180180

181181

0 commit comments

Comments
 (0)