From 4887d8fb43e3a1f49930e9d7691d5bc09760e012 Mon Sep 17 00:00:00 2001 From: tyler17 Date: Thu, 24 Oct 2024 00:09:41 -0700 Subject: [PATCH 1/2] show v1 and v2 delegate factory in stats --- modules/contracts/eth-sdk.config.ts | 1 + .../delegates/components/DelegatesSystemInfo.tsx | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/contracts/eth-sdk.config.ts b/modules/contracts/eth-sdk.config.ts index 492b55d25..1211cfde9 100644 --- a/modules/contracts/eth-sdk.config.ts +++ b/modules/contracts/eth-sdk.config.ts @@ -55,6 +55,7 @@ const config: EthSdkConfig = { pot: '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7', vat: '0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B', voteDelegateFactory: '0xC3D809E87A2C9da4F6d98fECea9135d834d6F5A0', + voteDelegateFactoryOld: '0xD897F108670903D1d6070fcf818f9db3615AF272', voteProxyFactory: '0x6FCD258af181B3221073A96dD90D1f7AE7eEc408', voteProxyFactoryOld: '0xa63E145309cadaa6A903a19993868Ef7E85058BE', vow: '0xA950524441892A31ebddF91d3cEEFa04Bf454466' diff --git a/modules/delegates/components/DelegatesSystemInfo.tsx b/modules/delegates/components/DelegatesSystemInfo.tsx index f6db4618c..721c3b09f 100644 --- a/modules/delegates/components/DelegatesSystemInfo.tsx +++ b/modules/delegates/components/DelegatesSystemInfo.tsx @@ -26,6 +26,7 @@ export function DelegatesSystemInfo({ className?: string; }): React.ReactElement { const delegateFactoryAddress = useContractAddress('voteDelegateFactory'); + const oldDelegateFactoryAddress = useContractAddress('voteDelegateFactoryOld'); const { network } = useWeb3(); const { data: totalMkr } = useTotalSupply(Tokens.MKR); @@ -64,7 +65,7 @@ export function DelegatesSystemInfo({ ) }, { - title: 'Total Delegators', + title: 'Total delegators', id: 'total-delegators-system-info', value: stats.totalDelegators } @@ -78,7 +79,7 @@ export function DelegatesSystemInfo({ - Delegate Factory + V2 delegate factory {delegateFactoryAddress ? ( ) : ( @@ -87,6 +88,16 @@ export function DelegatesSystemInfo({ )} + + V1 delegate factory + {oldDelegateFactoryAddress ? ( + + ) : ( + + + + )} + {statsItems.map(item => ( {item.title} From 090007d2cb2152568478bfefdfcb75d178f775c3 Mon Sep 17 00:00:00 2001 From: tyler17 Date: Thu, 24 Oct 2024 09:08:59 -0700 Subject: [PATCH 2/2] remove old from tenderly sdk --- modules/contracts/eth-sdk.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/contracts/eth-sdk.config.ts b/modules/contracts/eth-sdk.config.ts index 1211cfde9..492b55d25 100644 --- a/modules/contracts/eth-sdk.config.ts +++ b/modules/contracts/eth-sdk.config.ts @@ -55,7 +55,6 @@ const config: EthSdkConfig = { pot: '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7', vat: '0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B', voteDelegateFactory: '0xC3D809E87A2C9da4F6d98fECea9135d834d6F5A0', - voteDelegateFactoryOld: '0xD897F108670903D1d6070fcf818f9db3615AF272', voteProxyFactory: '0x6FCD258af181B3221073A96dD90D1f7AE7eEc408', voteProxyFactoryOld: '0xa63E145309cadaa6A903a19993868Ef7E85058BE', vow: '0xA950524441892A31ebddF91d3cEEFa04Bf454466'