+
+ ) : (
+ <>
+ {bondAmount > 0
+ ? `${formatRate(
+ calculateAprFromPrice({
+ positionDuration:
+ hyperdrive.poolConfig.positionDuration || 0n,
+ baseAmount: amountPaidInBase,
+ bondAmount: bondAmount,
+ }),
+ baseToken.decimals,
+ )}%`
+ : `${fixedApr?.formatted}%`}
+ >
+ )
+ }
+ valueUnit="APR"
+ subValue={
+ openLongPreviewStatus === "loading" ? (
+
+ ) : (
+ <>{`${formatBalance({
+ balance: bondAmount,
+ decimals: baseToken.decimals,
+ places: baseToken.places,
+ })} hy${baseToken.symbol}`}>
+ )
+ }
+ valueClassName="bg-gradient-to-r from-accent to-primary bg-clip-text text-transparent flex items-end"
+ />
+
+
+ ) : (
+
+
+ {`${formatBalance({
+ balance: amountPaidInBase + yieldAtMaturity,
+ decimals: baseToken.decimals,
+ places: baseToken.places,
+ })} `}
+
+ )
+ }
+ valueUnit={`${activeToken.symbol}`}
+ valueClassName="text-base-content flex items-end"
+ subValue={`Term: ${numDays} days`}
+ />
+
+ );
+}
diff --git a/apps/hyperdrive-trading/src/ui/token/SlippageSettingsTwo.tsx b/apps/hyperdrive-trading/src/ui/token/SlippageSettingsTwo.tsx
new file mode 100644
index 000000000..8a89d814d
--- /dev/null
+++ b/apps/hyperdrive-trading/src/ui/token/SlippageSettingsTwo.tsx
@@ -0,0 +1,84 @@
+import {
+ Cog6ToothIcon,
+ InformationCircleIcon,
+} from "@heroicons/react/24/outline";
+import classNames from "classnames";
+import { ReactElement } from "react";
+import { PercentInput } from "src/ui/base/components/PercentInput";
+
+export const DEFAULT_SLIPPAGE_AMOUNT = "0.5";
+
+export function SlippageSettingsTwo({
+ slippage,
+ onSlippageChange,
+ activeOption,
+ onActiveOptionChange,
+ tooltip,
+}: {
+ slippage: string;
+ onSlippageChange: (slippage: string) => void;
+ activeOption: "auto" | "custom";
+ onActiveOptionChange: (activeTab: "auto" | "custom") => void;
+ tooltip?: string;
+}): ReactElement {
+ return (
+