diff --git a/src/app/components/OrderInput.tsx b/src/app/components/OrderInput.tsx index 022ee31b..2c5b3970 100644 --- a/src/app/components/OrderInput.tsx +++ b/src/app/components/OrderInput.tsx @@ -491,7 +491,6 @@ function UserInputContainer() { balance = Math.max(balance - XRD_FEE_ALLOWANCE, 0); } - // const amount = (balance * newPercentage) / 100; const amount = Calculator.divide( Calculator.multiply(balance, newPercentage), 100 @@ -927,7 +926,6 @@ const PercentageSlider: React.FC = ({ } else if (inputToken2 > 0 && isLimitOrder && isSellOrder) { return; } else if (balanceToken2 && inputToken2 > 0) { - // const newPercentage = (inputToken2 / balanceToken2) * 100; const newPercentage = Calculator.multiply( Calculator.divide(inputToken2, balanceToken2), 100 @@ -935,7 +933,6 @@ const PercentageSlider: React.FC = ({ setPercentage(newPercentage); sliderRef.current.style.backgroundSize = `${newPercentage}% 100%`; } else if (balanceToken1 && inputToken1 > 0) { - // const newPercentage = (inputToken1 / balanceToken1) * 100; const newPercentage = Calculator.multiply( Calculator.divide(inputToken1, balanceToken1), 100 @@ -1012,7 +1009,6 @@ const PercentageSlider: React.FC = ({ className="dot h-[7px] w-[7px] bg-white rounded-full z-[1] cursor-pointer" style={ { - // left: `${(index * 100) / 5}%`, left: `Calculator.divide((Calculator.multiply(index, 100)), 5)}%`, } as React.CSSProperties }