Allow unregistered IBC tokens

This commit is contained in:
abefernan
2024-01-08 13:04:23 +01:00
parent 63ae9784bc
commit 24b2b20135
+5
View File
@@ -17,6 +17,11 @@ const macroCoinToMicroCoin = (macroCoin: Coin, assets: readonly RegistryAsset[])
),
);
// Leave IBC coins as is if not found on registry assets
if (!asset && macroCoin.denom.toLowerCase().startsWith("ibc/")) {
return macroCoin;
}
assert(asset, `An asset with the given symbol ${macroCoin.denom} was not found`);
const macroUnit = asset.denom_units.find(