From 272decfbb9984aff9867c60278529655dbeedf26 Mon Sep 17 00:00:00 2001 From: bearpong <178402093+bearpong@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:21:58 -0500 Subject: [PATCH 01/14] chore(graphql): removes unused files --- .../graphql/src/modules/berachef/index.ts | 1 - .../graphql/src/modules/berachef/types.ts | 34 ------------------- packages/graphql/src/modules/index.ts | 3 -- 3 files changed, 38 deletions(-) delete mode 100755 packages/graphql/src/modules/berachef/index.ts delete mode 100755 packages/graphql/src/modules/berachef/types.ts diff --git a/packages/graphql/src/modules/berachef/index.ts b/packages/graphql/src/modules/berachef/index.ts deleted file mode 100755 index eea524d65..000000000 --- a/packages/graphql/src/modules/berachef/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/packages/graphql/src/modules/berachef/types.ts b/packages/graphql/src/modules/berachef/types.ts deleted file mode 100755 index 162d88a9b..000000000 --- a/packages/graphql/src/modules/berachef/types.ts +++ /dev/null @@ -1,34 +0,0 @@ -export interface InflationRate { - id: string; - currentBlockSupply: number; - lastBlockSupply: number; - lastBlock: number; - currentBlock: number; - difference: number; - inflationRate: number; - bgtPerYear: number; -} - -export interface CuttingBoard { - startEpoch: number; - valConsAddr: string; - id: string; - epoch: number; - weights: Weight[]; -} - -export interface Weight { - id: string; - receiver: string; - weight: number; - amount: number; - epoch: number; -} - -export interface GlobalCuttingBoardData { - startEpoch: number; - valConsAddr: string; - id: string; - epoch: number; - weights: Weight[]; -} diff --git a/packages/graphql/src/modules/index.ts b/packages/graphql/src/modules/index.ts index 759335b8a..13997fa81 100755 --- a/packages/graphql/src/modules/index.ts +++ b/packages/graphql/src/modules/index.ts @@ -3,7 +3,4 @@ export * from "./types"; export * from "./chain/chain.codegen"; export * from "./honey"; export * from "./lend"; -// export * from "./governance"; -export * from "./berachef"; export * from "./clients"; -// export * from "./pol"; From 3e493dee2c47d5c7fb5ebbda1fb45be90eff754b Mon Sep 17 00:00:00 2001 From: bearpong <178402093+bearpong@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:30:37 -0500 Subject: [PATCH 02/14] chore(pol): updates vault UI --- .../components/VaultDetails.tsx | 5 +- .../{withdraw-lp.tsx => WithdrawLP.tsx} | 68 +++++++++---------- .../[gaugeAddress]/components/deposit-lp.tsx | 59 ++++++++-------- .../components/gauge-lp-change.tsx | 33 --------- .../vaults/[gaugeAddress]/components/info.tsx | 22 ------ .../components/my-gauge-details.tsx | 65 ++++++++++++++---- .../src/app/vaults/[gaugeAddress]/loading.tsx | 9 ++- .../src/components/gauge-header-widget.tsx | 14 ++-- packages/graphql/src/modules/pol/api.graphql | 1 + secrets | 2 +- 10 files changed, 135 insertions(+), 143 deletions(-) rename apps/hub/src/app/vaults/[gaugeAddress]/components/{withdraw-lp.tsx => WithdrawLP.tsx} (72%) delete mode 100755 apps/hub/src/app/vaults/[gaugeAddress]/components/gauge-lp-change.tsx delete mode 100755 apps/hub/src/app/vaults/[gaugeAddress]/components/info.tsx diff --git a/apps/hub/src/app/vaults/[gaugeAddress]/components/VaultDetails.tsx b/apps/hub/src/app/vaults/[gaugeAddress]/components/VaultDetails.tsx index 7c95df384..37a254121 100755 --- a/apps/hub/src/app/vaults/[gaugeAddress]/components/VaultDetails.tsx +++ b/apps/hub/src/app/vaults/[gaugeAddress]/components/VaultDetails.tsx @@ -83,7 +83,7 @@ const _GaugeDetails = ({ address }: { address: Address }) => { return ( <> {rewardVault ? ( -
{withdrawPercent.toFixed(2)}%
@@ -138,14 +137,13 @@ export const WithdrawLP = ({