Skip to content

Commit 1881f3a

Browse files
committed
feat: new factory and config for distribution
1 parent a27e954 commit 1881f3a

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

Diff for: deployments/mainnet/usdc/migrations/1722358576_launch_franchaisers.ts

+23-13
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,30 @@ import { exp, proposal } from '../../../../src/deploy';
33
import { Contract, ethers } from 'ethers';
44
import { expect } from 'chai';
55

6-
const FRANCHAISER_FACTORY = '0xcd94088b74391dc0a22f0a9611a66dc44f70da72';
6+
const FRANCHAISER_FACTORY = '0xE696d89f4F378772f437F01FaaD70240abdf1854';
77

88
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
1418
];
1519

1620
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),
2230
];
2331

2432
const votesBefore: bigint[] = [];
@@ -44,7 +52,7 @@ export default migration('1722358576_launch_franchaisers', {
4452
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns (address[] memory franchisers)',
4553
'function getFranchiser(address owner, address delegatee) public view returns (address)',
4654
],
47-
ethers.getDefaultProvider(1)
55+
deploymentManager.hre.ethers.provider
4856
);
4957

5058
const totalAmount = amounts.reduce((accumulator, currentValue) => accumulator + currentValue, 0n);
@@ -102,8 +110,10 @@ export default migration('1722358576_launch_franchaisers', {
102110
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns(address[] memory franchisers)',
103111
'function getFranchiser(address,address) external view returns(address)',
104112
],
105-
ethers.getDefaultProvider()
113+
deploymentManager.hre.ethers.provider
106114
);
115+
const totalAmount = amounts.reduce((accumulator, currentValue) => accumulator + currentValue, 0n);
116+
expect(totalAmount).to.be.equal(exp(300_000, 18));
107117

108118
for (let i = 0; i < chosenAddresses.length; i++) {
109119
const franchaiserAddress = await deploymentManager.retry(

Diff for: scenario/constraints/ProposalConstraint.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export class ProposalConstraint<T extends CometContext> implements StaticConstra
6262
);
6363
}
6464

65-
// temporary hack to skip proposal 259
66-
if (proposal.id.eq(259)) {
67-
console.log('Skipping proposal 259');
65+
// temporary hack to skip proposal 307
66+
if (proposal.id.eq(307)) {
67+
console.log('Skipping proposal 307');
6868
continue;
6969
}
7070

0 commit comments

Comments
 (0)