mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Added combinedAddressToAsset param
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.63",
|
||||
"version": "0.19.64",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -81,6 +81,7 @@ export default class Bridge {
|
||||
walletAddress: string,
|
||||
localAtomicSwaps: AtomicSwapLocal[],
|
||||
transactions: TransactionInfo[],
|
||||
combinedAddressToAsset: Partial<Record<string, Partial<Record<SupportedChainId, string>>>>,
|
||||
) {
|
||||
// Prepare transactions data
|
||||
const byTxHashMap = new Map<string, TransactionInfo>();
|
||||
@@ -140,8 +141,7 @@ export default class Bridge {
|
||||
if (currentTime > atomicHistoryItem.redeemOrder.expiration) redeemExpired = true;
|
||||
}
|
||||
|
||||
// const assetName = combinedAddressToAsset[atomicHistoryItem.asset]?.[atomicHistoryItem.sourceChainId];
|
||||
const assetName = 'asdf';
|
||||
const assetName = combinedAddressToAsset[atomicHistoryItem.asset]?.[atomicHistoryItem.sourceChainId];
|
||||
|
||||
const amount = atomicHistoryItem.amountToReceive ?? atomicHistoryItem.amountToSpend;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user