@pioneer-platform/pro-token 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -189,7 +189,7 @@ var get_rate_eth = function () {
189
189
  chainId = 8453;
190
190
  provider = new ethers.providers.JsonRpcProvider(EIP155_MAINNET_CHAINS['eip155:8453'].rpc);
191
191
  router = new smart_order_router_1.AlphaRouter({ chainId: chainId, provider: provider });
192
- amount = sdk_core_1.CurrencyAmount.fromRawAmount(SELL_TOKEN, BigNumber.from("1000000000000000000"));
192
+ amount = sdk_core_1.CurrencyAmount.fromRawAmount(SELL_TOKEN, BigNumber.from("1000000000000000"));
193
193
  Protocol = void 0;
194
194
  (function (Protocol) {
195
195
  Protocol["V2"] = "V2";
@@ -205,6 +205,7 @@ var get_rate_eth = function () {
205
205
  throw Error("Failed to get swapRoute");
206
206
  console.log("swapRoute details:", JSON.stringify(swapRoute, null, 2));
207
207
  output = swapRoute.route[0].quote.toFixed(18);
208
+ output = parseFloat(output) * 1000;
208
209
  return [2 /*return*/, output];
209
210
  case 3:
210
211
  e_3 = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pro-token",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "dependencies": {