Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 4365483

Browse files
committed
Change description + sale start time
1 parent 67a8731 commit 4365483

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

scripts/deploy/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type TokenSaleConfig = {
2020
TOKEN_SALE_RECIPIENT: string;
2121
TOKEN_SALE_WHITELIST: typeof TOKEN_SALE_WHITELIST;
2222
RECIPIENT_AMOUNT: BN;
23+
TOKEN_SALE_SUPPLY: BN;
2324
};
2425

2526
const TOKEN_SALE_WHITELIST = [
@@ -64,12 +65,13 @@ export const allConfigs: {[key: number]: Config} = {
6465
export const tokenSaleConfigs: {[key: number]: TokenSaleConfig} = {
6566
// polygon mainnet
6667
137: {
67-
TOKEN_SALE_START: 1644537600, // Friday, February 11, 2022 12:00:00 AM UTC
68+
TOKEN_SALE_START: 1644451200, // Thursday, February 10, 2022 12:00:00 AM UTC
6869
TOKEN_SALE_DURATION: 10 * ONE_DAY,
6970
TOKEN_SALE_USDC: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
7071
TOKEN_SALE_ARENA_PRICE: BN.from(30_000).mul(ONE_18).div(ONE_18), // 0.03 USDC * 1e18 / 1.0 ARENA
7172
TOKEN_SALE_RECIPIENT: '0x7f0049597056E37B4B1f887196E44CAc050D4863 ', // C4 Polygon multisig
7273
TOKEN_SALE_WHITELIST,
7374
RECIPIENT_AMOUNT: BN.from(1_750_000).mul(BN.from(10).pow(6)), // 1.75M USDC, rest to treasury
75+
TOKEN_SALE_SUPPLY: BN.from(100_000_000).mul(ONE_18), // 100M ARENA tokens
7476
},
7577
};

scripts/deploy/deployTokenSale.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export async function deployTokenSale(hre: HardhatRuntimeEnvironment) {
8888
config.TOKEN_SALE_WHITELIST.map(({buyer}) => buyer),
8989
config.TOKEN_SALE_WHITELIST.map(({arenaAmount}) => arenaAmount)
9090
);
91-
const TOKEN_SALE_SUPPLY = config.TOKEN_SALE_WHITELIST.reduce((sum, el) => sum.add(el.arenaAmount), BN.from(`0`));
9291
// transfer token sale admin role to timelock
9392
await tokenSale.transferOwnership(timelock.address);
9493

@@ -98,14 +97,19 @@ export async function deployTokenSale(hre: HardhatRuntimeEnvironment) {
9897
let values: string[] = ['0', '0'];
9998
let calldatas: string[] = [
10099
tokenLock.interface.encodeFunctionData('setTokenSale', [tokenSale.address]),
101-
arenaToken.interface.encodeFunctionData('transfer', [tokenSale.address, TOKEN_SALE_SUPPLY]),
100+
arenaToken.interface.encodeFunctionData('transfer', [tokenSale.address, config.TOKEN_SALE_SUPPLY]),
102101
];
103102

104103
const tx = await governor['propose(address[],uint256[],bytes[],string)'](
105104
targets,
106105
values,
107106
calldatas,
108-
`Conduct Arena token sale!`
107+
`"# C4IP-6: Transfer ARENA for token sale\nThis proposal takes action on the token sale approved by [C4IP-1\\]
108+
\\(https://www.withtally.com/governance/eip155:137:0xc6eaDcC36aFcf1C430962506ad79145aD5140E58/proposal/61969381053746686972699442694032986733206504062025717191093241526145462208038)
109+
and the hiring of Code4 Corporation approved by [C4IP-3\\]\\(https://www.withtally.com/governance/eip155:137:0xc6eaDcC36aFcf1C430962506ad79145aD5140E58/proposal/46190911081008287731655546929165163023822387405966829437304548060152876868278)
110+
both of which are discussed in detail in [this forum post\\]\\(https://forum.code4rena.com/t/c4ip-1-constitution-dao-bootstrapping-reimbursements-token-sale/93)\n\n\n\n- 100,000,000 $ARENA tokens transferred to the [token sale contract\\]
111+
\\(${tokenSale.address})\n\n- Tokens are sold at price of 1 ARENA = .03 USDC\n\n- Token sale details to be administered by Code4 Corporation\n\n- $1.75M of the initial sale will immediately be used to fund Code4 Corporation operations\n\n
112+
- Remaining $1.25M proceeds will be transferred to the Code4rena treasury<br>\n\n\n<!-- -->\n\n"`
109113
);
110114
console.log(`proposal submitted: ${tx.hash}`);
111115
console.log(`waiting for block inclusion ...`);

0 commit comments

Comments
 (0)