Skip to content

Commit 6544905

Browse files
authored
Merge pull request #951 from makerdao/develop
develop -> master
2 parents e3f5b24 + e79f195 commit 6544905

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

modules/delegates/components/DelegatesSystemInfo.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function DelegatesSystemInfo({
2626
className?: string;
2727
}): React.ReactElement {
2828
const delegateFactoryAddress = useContractAddress('voteDelegateFactory');
29+
const oldDelegateFactoryAddress = useContractAddress('voteDelegateFactoryOld');
2930
const { network } = useWeb3();
3031

3132
const { data: totalMkr } = useTotalSupply(Tokens.MKR);
@@ -64,7 +65,7 @@ export function DelegatesSystemInfo({
6465
)
6566
},
6667
{
67-
title: 'Total Delegators',
68+
title: 'Total delegators',
6869
id: 'total-delegators-system-info',
6970
value: stats.totalDelegators
7071
}
@@ -78,7 +79,7 @@ export function DelegatesSystemInfo({
7879
<Card variant="compact">
7980
<StackLayout gap={3}>
8081
<Flex sx={{ justifyContent: 'space-between', flexDirection: 'row' }}>
81-
<Text sx={{ fontSize: 3, color: 'textSecondary' }}>Delegate Factory</Text>
82+
<Text sx={{ fontSize: 3, color: 'textSecondary' }}>V2 delegate factory</Text>
8283
{delegateFactoryAddress ? (
8384
<EtherscanLink type="address" showAddress hash={delegateFactoryAddress} network={network} />
8485
) : (
@@ -87,6 +88,16 @@ export function DelegatesSystemInfo({
8788
</Box>
8889
)}
8990
</Flex>
91+
<Flex sx={{ justifyContent: 'space-between', flexDirection: 'row' }}>
92+
<Text sx={{ fontSize: 3, color: 'textSecondary' }}>V1 delegate factory</Text>
93+
{oldDelegateFactoryAddress ? (
94+
<EtherscanLink type="address" showAddress hash={oldDelegateFactoryAddress} network={network} />
95+
) : (
96+
<Box sx={{ width: 6 }}>
97+
<SkeletonThemed />
98+
</Box>
99+
)}
100+
</Flex>
90101
{statsItems.map(item => (
91102
<Flex key={item.id} sx={{ justifyContent: 'space-between', flexDirection: 'row' }}>
92103
<Text sx={{ fontSize: 3, color: 'textSecondary' }}>{item.title}</Text>

modules/migration/delegateAddressLinks.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ export const delegateAddressLinks = {
6161
'0x86F8A04FbAF5c8eD0465624c355c1E3C073213cA': '0xe676e1Aa2419b22699aCCFc12C11761F009dDAF0',
6262
// BLUE
6363
'0xE5a7023f78c3c0b7B098e8f4aCE7031B3D9aFBaB': '0xe9e3951535053AF603cbE53b0753361459b74D76',
64+
// BLUE V2
65+
'0xe9e3951535053AF603cbE53b0753361459b74D76': '0x73056E27D9cc08f963d41664C705392f305cFE7d',
66+
// BONAPUBLICA V2
67+
'0x694C1Dc8abE434e4b46Fc545B4680cdA1F524F21': '0x79bc4725A6A48C18D94E90C7002b8aF37F20919a',
68+
// Cloaky V2
69+
'0xe676e1Aa2419b22699aCCFc12C11761F009dDAF0': '0xd352A360CCCB06FB23a8681c44E6b12A999AE7A0'
6470
}
6571
};
6672

0 commit comments

Comments
 (0)