@@ -6,19 +6,25 @@ import { expect } from 'chai';
6
6
const FRANCHAISER_FACTORY = '0xcd94088b74391dc0a22f0a9611a66dc44f70da72' ;
7
7
8
8
const chosenAddresses = [
9
- '0x4Ac0Dbce527bcb60787CEF10053348B146C6b5e3' ,
10
- '0xE13C54214267675428Adf7E0af9DA433F5Ead460' ,
11
- '0xb55a948763e0d386b6dEfcD8070a522216AE42b1' ,
12
- '0x3FB19771947072629C8EEE7995a2eF23B72d4C8A' ,
13
- '0x7B3c54e17d618CC94daDFe7671c1e2F50C4Ecc33' ,
9
+ '0x3FB19771947072629C8EEE7995a2eF23B72d4C8A' , // PGov
10
+ '0x070341aA5Ed571f0FB2c4a5641409B1A46b4961b' , // Franklin DAO
11
+ '0x0579A616689f7ed748dC07692A3F150D44b0CA09' , // Arana Digital
12
+ '0x13BDaE8c5F0fC40231F0E6A4ad70196F59138548' , // Michigan Blockchain
13
+ '0x66cD62c6F8A4BB0Cd8720488BCBd1A6221B765F9' , // Allthecolors
14
+ '0xB49f8b8613bE240213C1827e2E576044fFEC7948' , // Avantgarde Finance
15
+ '0xb35659cbac913D5E4119F2Af47fD490A45e2c826' , // Event Horizon
16
+ '0x72C58877ef744b86F6ef416a3bE26Ec19d587708' , // sharp
14
17
] ;
15
18
16
19
const amounts = [
17
- exp ( 5_000 , 18 ) ,
18
- exp ( 10_000 , 18 ) ,
19
- exp ( 15_000 , 18 ) ,
20
- exp ( 20_000 , 18 ) ,
21
- exp ( 25_000 , 18 ) ,
20
+ exp ( 34_450 , 18 ) ,
21
+ exp ( 9_999.76 , 18 ) ,
22
+ exp ( 50_000 , 18 ) ,
23
+ exp ( 29_999.88 , 18 ) ,
24
+ exp ( 44_371.81 , 18 ) ,
25
+ exp ( 29_999.85 , 18 ) ,
26
+ exp ( 50_000 , 18 ) ,
27
+ exp ( 1_178.7 , 18 ) ,
22
28
] ;
23
29
24
30
const votesBefore : bigint [ ] = [ ] ;
@@ -44,7 +50,7 @@ export default migration('1722358576_launch_franchaisers', {
44
50
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns (address[] memory franchisers)' ,
45
51
'function getFranchiser(address owner, address delegatee) public view returns (address)' ,
46
52
] ,
47
- ethers . getDefaultProvider ( 1 )
53
+ deploymentManager . hre . ethers . provider
48
54
) ;
49
55
50
56
const totalAmount = amounts . reduce ( ( accumulator , currentValue ) => accumulator + currentValue , 0n ) ;
@@ -102,8 +108,10 @@ export default migration('1722358576_launch_franchaisers', {
102
108
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns(address[] memory franchisers)' ,
103
109
'function getFranchiser(address,address) external view returns(address)' ,
104
110
] ,
105
- ethers . getDefaultProvider ( )
111
+ deploymentManager . hre . ethers . provider
106
112
) ;
113
+ const totalAmount = amounts . reduce ( ( accumulator , currentValue ) => accumulator + currentValue , 0n ) ;
114
+ expect ( totalAmount ) . to . be . equal ( exp ( 250_000 , 18 ) ) ;
107
115
108
116
for ( let i = 0 ; i < chosenAddresses . length ; i ++ ) {
109
117
const franchaiserAddress = await deploymentManager . retry (
0 commit comments