@@ -3,22 +3,30 @@ import { exp, proposal } from '../../../../src/deploy';
3
3
import { Contract , ethers } from 'ethers' ;
4
4
import { expect } from 'chai' ;
5
5
6
- const FRANCHAISER_FACTORY = '0xcd94088b74391dc0a22f0a9611a66dc44f70da72 ' ;
6
+ const FRANCHAISER_FACTORY = '0xE696d89f4F378772f437F01FaaD70240abdf1854 ' ;
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
17
+ '0x4f894Bfc9481110278C356adE1473eBe2127Fd3C' , // Alpha Growth
14
18
] ;
15
19
16
20
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 ) ,
21
+ exp ( 34_450 , 18 ) ,
22
+ exp ( 9_999.76 , 18 ) ,
23
+ exp ( 50_000 , 18 ) ,
24
+ exp ( 29_999.88 , 18 ) ,
25
+ exp ( 44_371.81 , 18 ) ,
26
+ exp ( 29_999.85 , 18 ) ,
27
+ exp ( 50_000 , 18 ) ,
28
+ exp ( 1_178.7 , 18 ) ,
29
+ exp ( 50_000 , 18 ) ,
22
30
] ;
23
31
24
32
const votesBefore : bigint [ ] = [ ] ;
@@ -44,7 +52,7 @@ export default migration('1722358576_launch_franchaisers', {
44
52
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns (address[] memory franchisers)' ,
45
53
'function getFranchiser(address owner, address delegatee) public view returns (address)' ,
46
54
] ,
47
- ethers . getDefaultProvider ( 1 )
55
+ deploymentManager . hre . ethers . provider
48
56
) ;
49
57
50
58
const totalAmount = amounts . reduce ( ( accumulator , currentValue ) => accumulator + currentValue , 0n ) ;
@@ -102,8 +110,10 @@ export default migration('1722358576_launch_franchaisers', {
102
110
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns(address[] memory franchisers)' ,
103
111
'function getFranchiser(address,address) external view returns(address)' ,
104
112
] ,
105
- ethers . getDefaultProvider ( )
113
+ deploymentManager . hre . ethers . provider
106
114
) ;
115
+ const totalAmount = amounts . reduce ( ( accumulator , currentValue ) => accumulator + currentValue , 0n ) ;
116
+ expect ( totalAmount ) . to . be . equal ( exp ( 300_000 , 18 ) ) ;
107
117
108
118
for ( let i = 0 ; i < chosenAddresses . length ; i ++ ) {
109
119
const franchaiserAddress = await deploymentManager . retry (
0 commit comments