@@ -30,15 +30,15 @@ pub enum GoverningTokenType {
30
30
31
31
/// Membership token is a token controlled by Realm authority
32
32
/// Deposit - Yes, membership tokens can be deposited to gain governance power
33
- /// The membership tokens are conventionally minted into the holding account to keep them out of members possesion
33
+ /// The membership tokens are conventionally minted into the holding account to keep them out of members possession
34
34
/// Withdraw - No, after membership tokens are deposited they are no longer transferable and can't be withdrawn
35
35
/// Revoke - Yes, Realm authority can Revoke (burn) membership tokens
36
36
Membership ,
37
37
38
38
/// Dormant token is a token which is only a placeholder and its deposits are not accepted and not used for governance power within the Realm
39
39
///
40
40
/// The Dormant token type is used when only a single voting population is operational. For example a Multisig starter DAO uses Council only
41
- /// and sets Community as Dormant to indicate its not utilised for any governance power.
41
+ /// and sets Community as Dormant to indicate its not utilized for any governance power.
42
42
/// Once the starter DAO decides to decentralise then it can change the Community token to Liquid
43
43
///
44
44
/// Note: When an external voter weight plugin which takes deposits of the token is used then the type should be set to Dormant
@@ -162,7 +162,7 @@ impl RealmConfigAccount {
162
162
}
163
163
}
164
164
165
- /// Assertes the given governing token can be deposited
165
+ /// Asserts the given governing token can be deposited
166
166
pub fn assert_can_deposit_governing_token (
167
167
& self ,
168
168
realm_data : & RealmV2 ,
@@ -175,12 +175,12 @@ impl RealmConfigAccount {
175
175
match governing_token_type {
176
176
GoverningTokenType :: Membership | GoverningTokenType :: Liquid => Ok ( ( ) ) ,
177
177
// Note: Preventing deposits of the Dormant type tokens is not a direct security concern
178
- // It only makes the intention of not using deposited tokens as governnace power stronger
178
+ // It only makes the intention of not using deposited tokens as governance power stronger
179
179
GoverningTokenType :: Dormant => Err ( GovernanceError :: CannotDepositDormantTokens . into ( ) ) ,
180
180
}
181
181
}
182
182
183
- /// Assertes the given governing token can be withdrawn
183
+ /// Asserts the given governing token can be withdrawn
184
184
pub fn assert_can_withdraw_governing_token (
185
185
& self ,
186
186
realm_data : & RealmV2 ,
@@ -198,15 +198,15 @@ impl RealmConfigAccount {
198
198
}
199
199
}
200
200
201
- /// Asserts the given RealmConfigArgs represent a valid Realm configuraiton change
201
+ /// Asserts the given RealmConfigArgs represent a valid Realm configuration change
202
202
pub fn assert_can_change_config (
203
203
& self ,
204
204
realm_config_args : & RealmConfigArgs ,
205
205
) -> Result < ( ) , ProgramError > {
206
206
// Existing community token type can't be changed to Membership because it would
207
207
// give the Realm authority the right to burn members tokens which should not be the case because the tokens belong to the members
208
- // On the other had for the Council token it's acceptable and in fact desired change becuase council tokens denote memebership
209
- // which should be controled by the Realm
208
+ // On the other had for the Council token it's acceptable and in fact desired change because council tokens denote membership
209
+ // which should be controlled by the Realm
210
210
if self . community_token_config . token_type != GoverningTokenType :: Membership
211
211
&& realm_config_args. community_token_config_args . token_type
212
212
== GoverningTokenType :: Membership
@@ -226,8 +226,8 @@ pub fn get_realm_config_data(
226
226
get_account_data :: < RealmConfigAccount > ( program_id, realm_config_info)
227
227
}
228
228
229
- /// If the account exists then desrialises it into RealmConfigAccount struct and checks the owner program and the Realm it belongs to
230
- /// If the accoutn doesn't exist then it checks its address is derived from the given owner program and Realm and returns default RealmConfigAccount
229
+ /// If the account exists then deserializes it into RealmConfigAccount struct and checks the owner program and the Realm it belongs to
230
+ /// If the account doesn't exist then it checks its address is derived from the given owner program and Realm and returns default RealmConfigAccount
231
231
pub fn get_realm_config_data_for_realm (
232
232
program_id : & Pubkey ,
233
233
realm_config_info : & AccountInfo ,
@@ -236,7 +236,7 @@ pub fn get_realm_config_data_for_realm(
236
236
let realm_config_data = if realm_config_info. data_is_empty ( ) {
237
237
// If RealmConfigAccount doesn't exist yet then validate its PDA
238
238
// PDA validation is required because RealmConfigAccount might not exist for legacy Realms
239
- // and then its absense is used as default RealmConfigAccount value with no plugins and Liquid governance tokens
239
+ // and then its absence is used as default RealmConfigAccount value with no plugins and Liquid governance tokens
240
240
let realm_config_address = get_realm_config_address ( program_id, realm) ;
241
241
242
242
if realm_config_address != * realm_config_info. key {
0 commit comments