This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +0
-38
lines changed Expand file tree Collapse file tree 3 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ pub fn process_deposit_governing_tokens(
45
45
let realm_data = get_realm_data ( program_id, realm_info) ?;
46
46
let governing_token_mint = get_spl_token_mint ( governing_token_holding_info) ?;
47
47
48
- realm_data. asset_governing_tokens_deposits_allowed ( & governing_token_mint) ?;
49
-
50
48
realm_data. assert_is_valid_governing_token_mint_and_holding (
51
49
program_id,
52
50
realm_info. key ,
Original file line number Diff line number Diff line change @@ -197,21 +197,6 @@ impl RealmV2 {
197
197
Ok ( ( ) )
198
198
}
199
199
200
- /// Asserts the given governing token can be deposited into the realm
201
- pub fn asset_governing_tokens_deposits_allowed (
202
- & self ,
203
- governing_token_mint : & Pubkey ,
204
- ) -> Result < ( ) , ProgramError > {
205
- // If the deposit is for the community token and the realm uses community voter weight addin then panic
206
- if self . config . use_community_voter_weight_addin
207
- && self . community_mint == * governing_token_mint
208
- {
209
- return Err ( GovernanceError :: GoverningTokenDepositsNotAllowed . into ( ) ) ;
210
- }
211
-
212
- Ok ( ( ) )
213
- }
214
-
215
200
/// Assert the given create authority can create governance
216
201
pub fn assert_create_authority_can_create_governance (
217
202
& self ,
Original file line number Diff line number Diff line change @@ -248,27 +248,6 @@ async fn test_create_program_governance_with_voter_weight_addin() {
248
248
) ;
249
249
}
250
250
251
- #[ tokio:: test]
252
- async fn test_realm_with_voter_weight_addin_with_deposits_not_allowed ( ) {
253
- // Arrange
254
- let mut governance_test = GovernanceProgramTest :: start_with_voter_weight_addin ( ) . await ;
255
- let realm_cookie = governance_test. with_realm ( ) . await ;
256
-
257
- // Act
258
-
259
- let err = governance_test
260
- . with_community_token_deposit ( & realm_cookie)
261
- . await
262
- . err ( )
263
- . unwrap ( ) ;
264
-
265
- // Assert
266
- assert_eq ! (
267
- err,
268
- GovernanceError :: GoverningTokenDepositsNotAllowed . into( )
269
- ) ;
270
- }
271
-
272
251
#[ tokio:: test]
273
252
async fn test_create_governance_with_voter_weight_action_error ( ) {
274
253
// Arrange
You can’t perform that action at this time.
0 commit comments