mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
hotfix: support for ticker and address in generateSwapCalldata
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.17",
|
||||
"version": "0.20.18",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -62,7 +62,7 @@ export async function generateSwapCalldataWithUnit({
|
||||
|
||||
let path = SafeArray.from(arrayLikePath);
|
||||
const walletBalance = await getWalletBalance(
|
||||
safeGet(assetToAddress, path.first().assetIn),
|
||||
assetToAddress[path.first().assetIn] ?? path.first().assetIn.toLowerCase(),
|
||||
receiverAddress,
|
||||
unit.provider
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user