mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
Assets name mapping
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -567,6 +567,7 @@ class AggregatorWS {
|
||||
availableAmountIn: item.aa,
|
||||
availableAmountOut: item.aao,
|
||||
})),
|
||||
assetsNameMapping: json.anm,
|
||||
};
|
||||
|
||||
switch (json.k) { // kind
|
||||
|
||||
Reference in New Issue
Block a user