Skip to content

Commit 932d794

Browse files
authored
Merge pull request buildspace#693 from ngnathan/patch-7
Update Lesson_3_Building_Treasury_And_Governance.md
2 parents 8d3eb22 + cfcd3a9 commit 932d794

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

JS_DAO/en/Section_3/Lesson_3_Building_Treasury_And_Governance.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ const appModule = sdk.getAppModule(
6161

6262
We’re using `deployVoteModule` to actually set up the contract. This will deploy a brand new voting contract!
6363

64-
65-
Notice how we give it `votingTokenAddress`, this is how our contract knows which governance token to accept. We don’t want people randomly trying to use $DOGE to vote lol.
64+
Notice how we give it `votingTokenAddress`. This is our contract that knows which governance token to accept. We don’t want people randomly trying to use $DOGE to vote lol.
6665

6766
We have `proposalStartWaitTimeInSeconds`, which can be useful if you want to give people some time to go over the proposal before they’re allowed to vote on it. Similarly, we have `proposalVotingTimeInSeconds` which just specifies how long someone has to vote once a proposal goes lives.
6867

@@ -161,7 +160,7 @@ const tokenModule = sdk.getTokenModule(
161160

162161
A pretty simple script here! We do two things:
163162

164-
1. We grab the total # of tokens we have in our wallet using `tokenModule.balanceOf`. Remember, right now our wallet will has basically the entire supply apart from the token we airdropped.
163+
1. We grab the total # of tokens we have in our wallet using `tokenModule.balanceOf`. Remember, right now our wallet has basically the entire supply apart from the token we airdropped.
165164
2. We take the total supply we own, get 90% of it, and transfer that 90% to the voting module using `tokenModule.transfer`. You can transfer 100% if you want to! But, maybe you wanna keep some token for yourself as the creator!
166165

167166
Once you finish up, we can run this using `node scripts/9-setup-vote.js`. Here’s what I get as my output:

0 commit comments

Comments
 (0)