@cityofzion/bs-neo3 1.4.2 → 1.4.3
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.
|
@@ -30,6 +30,19 @@ class FlamingoSwapRouteHandler {
|
|
|
30
30
|
});
|
|
31
31
|
if (routePath.length === 0)
|
|
32
32
|
return [];
|
|
33
|
+
const isWrapOrUnwrapNeo = FlamingoSwapHelper_1.FlamingoSwapHelper.isWrapNeo(network, [tokenToUse, tokenToReceive]) ||
|
|
34
|
+
FlamingoSwapHelper_1.FlamingoSwapHelper.isUnwrapNeo(network, [tokenToReceive, tokenToUse]);
|
|
35
|
+
if (isWrapOrUnwrapNeo) {
|
|
36
|
+
const swapRoute = [
|
|
37
|
+
{
|
|
38
|
+
reserveTokenToReceive: '0',
|
|
39
|
+
reserveTokenToUse: '0',
|
|
40
|
+
tokenToReceive,
|
|
41
|
+
tokenToUse,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
return swapRoute;
|
|
45
|
+
}
|
|
33
46
|
const { stack: reservesStack } = yield __classPrivateFieldGet(this, _a, "m", _FlamingoSwapRouteHandler_invokeReserves).call(this, { network, routePath });
|
|
34
47
|
return __classPrivateFieldGet(this, _a, "m", _FlamingoSwapRouteHandler_createSwapRoute).call(this, { network, routePath, reservesStack });
|
|
35
48
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo3",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"bignumber.js": "^9.1.2",
|
|
21
21
|
"isomorphic-ws": "^5.0.0",
|
|
22
22
|
"lodash.clonedeep": "^4.5.0",
|
|
23
|
-
"@cityofzion/
|
|
24
|
-
"@cityofzion/
|
|
23
|
+
"@cityofzion/blockchain-service": "1.4.0",
|
|
24
|
+
"@cityofzion/bs-asteroid-sdk": "0.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@cityofzion/neon-dappkit-types": "~0.3.1",
|