Explorar el Código

increase max spending proposal limit

Mokhtar Naamani hace 4 años
padre
commit
39815a339d

+ 1 - 1
pioneer/packages/joy-proposals/src/validationSchema.ts

@@ -53,7 +53,7 @@ const MIN_VOTING_STAKE_MAX = 100000;
 
 // Spending
 const TOKENS_MIN = 0;
-const TOKENS_MAX = 2000000;
+const TOKENS_MAX = 5000000;
 
 // Set Validator Count
 const MAX_VALIDATOR_COUNT_MIN = 4;

+ 1 - 1
runtime-modules/proposals/codex/src/lib.rs

@@ -89,7 +89,7 @@ const WORKING_GROUP_MINT_CAPACITY_MAX_VALUE: u32 = 5_000_000;
 // 'Set content working group mint capacity' proposal limit
 const CONTENT_WORKING_GROUP_MINT_CAPACITY_MAX_VALUE: u32 = 1_000_000;
 // Max allowed value for 'spending' proposal
-const MAX_SPENDING_PROPOSAL_VALUE: u32 = 2_000_000_u32;
+const MAX_SPENDING_PROPOSAL_VALUE: u32 = 5_000_000_u32;
 // Max validator count for the 'set validator count' proposal
 const MAX_VALIDATOR_COUNT: u32 = 100;
 // council_size min value for the 'set election parameters' proposal

+ 1 - 1
runtime-modules/proposals/codex/src/tests/mod.rs

@@ -625,7 +625,7 @@ fn create_spending_proposal_call_fails_with_incorrect_balance() {
                 b"title".to_vec(),
                 b"body".to_vec(),
                 Some(<BalanceOf<Test>>::from(1250u32)),
-                2000001,
+                5000001,
                 2,
             ),
             Err(Error::<Test>::InvalidSpendingProposalBalance.into())