@cityofzion/bs-multichain 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -174,7 +174,7 @@ class Neo3NeoXBridgeOrchestrator {
|
|
|
174
174
|
const maxTokenBalanceAmountBn = isFeeToken
|
|
175
175
|
? tokenBalanceAmountBn.minus(constants.bridgeFee)
|
|
176
176
|
: tokenBalanceAmountBn;
|
|
177
|
-
const max =
|
|
177
|
+
const max = blockchain_service_1.BSBigNumber.max(0, blockchain_service_1.BSBigNumber.min(bridgeMaxAmountBn, maxTokenBalanceAmountBn));
|
|
178
178
|
__classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { value: blockchain_service_1.BSBigNumberHelper.format(max, { decimals: __classPrivateFieldGet(this, _Neo3NeoXBridgeOrchestrator_instances, "a", _Neo3NeoXBridgeOrchestrator_tokenToUse_get).value.decimals }) }, "a", _Neo3NeoXBridgeOrchestrator_amountToUseMax_set);
|
|
179
179
|
}
|
|
180
180
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-multichain",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"axios": "~1.8.2",
|
|
14
14
|
"lodash": "~4.17.21",
|
|
15
|
-
"@cityofzion/blockchain-service": "1.21.
|
|
15
|
+
"@cityofzion/blockchain-service": "1.21.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/jest": "29.5.3",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@types/node": "~22.8.6",
|
|
28
28
|
"@typescript-eslint/eslint-plugin": "~8.12.2",
|
|
29
29
|
"@typescript-eslint/parser": "~8.12.2",
|
|
30
|
-
"@cityofzion/bs-
|
|
31
|
-
"@cityofzion/bs-
|
|
32
|
-
"@cityofzion/bs-
|
|
33
|
-
"@cityofzion/bs-
|
|
30
|
+
"@cityofzion/bs-neo3": "1.16.3",
|
|
31
|
+
"@cityofzion/bs-neo-legacy": "1.13.4",
|
|
32
|
+
"@cityofzion/bs-neox": "1.3.5",
|
|
33
|
+
"@cityofzion/bs-ethereum": "2.13.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc --project tsconfig.build.json",
|