|
|
@@ -0,0 +1,22 @@
|
|
|
+import http from "../../utils/http";
|
|
|
+import logger from "../../utils/logger"
|
|
|
+import debug from '../../utils/debug'
|
|
|
+
|
|
|
+let baseUrl = 'http://www.410eth.com:8088'
|
|
|
+if (debug.isDev()) baseUrl = 'http://localhost:8088'
|
|
|
+
|
|
|
+async function main() {
|
|
|
+ logger.debug(new Date().getTime())
|
|
|
+
|
|
|
+ const rst = await http.post(baseUrl + '/swappath/findLevel2PathByLpAddress', {
|
|
|
+ lp_address: '0x397FF1542f962076d0BFE58eA045FfA2d347ACa0'
|
|
|
+ })
|
|
|
+ logger.debug(rst.data.data.length)
|
|
|
+
|
|
|
+ logger.debug(new Date().getTime())
|
|
|
+}
|
|
|
+
|
|
|
+main().catch((error) => {
|
|
|
+ console.error(error);
|
|
|
+ process.exitCode = 1;
|
|
|
+})
|