From 8b86846a67902736e40af66916518b66db45f9cb Mon Sep 17 00:00:00 2001 From: Ncookiez Date: Sun, 30 Jun 2024 11:07:11 -0400 Subject: [PATCH] improved smoothing rate conversion math on new lp deploy --- apps/vault-factory/package.json | 2 +- .../src/transactions/useSendDeployLiquidationPairTransaction.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/vault-factory/package.json b/apps/vault-factory/package.json index dc87b22f..e4f3e068 100644 --- a/apps/vault-factory/package.json +++ b/apps/vault-factory/package.json @@ -1,6 +1,6 @@ { "name": "vault-factory", - "version": "1.0.2", + "version": "1.0.3", "private": true, "scripts": { "dev": "next dev --port 3002", diff --git a/packages/hyperstructure-react-hooks/src/transactions/useSendDeployLiquidationPairTransaction.ts b/packages/hyperstructure-react-hooks/src/transactions/useSendDeployLiquidationPairTransaction.ts index e5cef813..9c8061ec 100644 --- a/packages/hyperstructure-react-hooks/src/transactions/useSendDeployLiquidationPairTransaction.ts +++ b/packages/hyperstructure-react-hooks/src/transactions/useSendDeployLiquidationPairTransaction.ts @@ -72,7 +72,7 @@ export const useSendDeployLiquidationPairTransaction = ( tokenOut, BigInt(targetAuctionPeriod ?? 0), targetAuctionPrice, - parseEther(smoothingFactor.toFixed(18)) + parseEther(smoothingFactor.toFixed(6)) ], query: { enabled } })