Assets name mapping

This commit is contained in:
Kirill Litvinov
2023-07-05 20:52:51 +03:00
parent 4e1aeb0f86
commit a76e514b28
4 changed files with 5 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ const swapInfoBase = z.object({
orderInfo: orderInfoSchema,
isThroughPoolOrCurve: z.boolean(),
}).array(),
anm: z.record(z.string()).optional(), // address to ERC20 names
});
const swapInfoByAmountIn = swapInfoBase.extend({

View File

@@ -567,6 +567,7 @@ class AggregatorWS {
availableAmountIn: item.aa,
availableAmountOut: item.aao,
})),
assetsNameMapping: json.anm,
};
switch (json.k) { // kind