@@ -70,38 +70,38 @@ func (p SimProfile) String() string {
7070 str := strings.Builder {}
7171 str .WriteString ("Simulation:\n " )
7272 str .WriteString (fmt .Sprintf (" - ID: %s\n " , p .ID ))
73- str .WriteString (fmt .Sprintf (" - SimDuration: %s \n " , FormatDuration ( p .SimDuration ) ))
74- str .WriteString (fmt .Sprintf (" - BlockTimeMin: %s \n " , FormatDuration ( p .BlockTimeMin ) ))
75- str .WriteString (fmt .Sprintf (" - BlockTimeMax: %s \n " , FormatDuration ( p .BlockTimeMax ) ))
73+ str .WriteString (fmt .Sprintf (" - SimDuration: %v \n " , p .SimDuration ))
74+ str .WriteString (fmt .Sprintf (" - BlockTimeMin: %v \n " , p .BlockTimeMin ))
75+ str .WriteString (fmt .Sprintf (" - BlockTimeMax: %v \n " , p .BlockTimeMax ))
7676 str .WriteString ("Initial balances:\n " )
7777 str .WriteString (fmt .Sprintf (" - MainTokens: %d.0%s\n " , p .MainTokensBalanceWODec , defaults .MainDenom ))
7878 str .WriteString (fmt .Sprintf (" - StakingTokens: %d.0%s\n " , p .BondingTokensBalanceWODec , defaults .StakingDenom ))
7979 str .WriteString (fmt .Sprintf (" - LPTokens: %d.0%s\n " , p .LPTokensBalanceWODec , defaults .LiquidityProviderDenom ))
8080 str .WriteString ("Total number of:\n " )
81- str .WriteString (fmt .Sprintf (" - Account: %d\n " , p .Accounts ))
81+ str .WriteString (fmt .Sprintf (" - Accounts: %d\n " , p .Accounts ))
8282 str .WriteString (fmt .Sprintf (" - PoA validators: %d\n " , p .POAValidators ))
8383 str .WriteString (fmt .Sprintf (" - TM validators (total): %d\n " , p .TMValidatorsTotal ))
8484 str .WriteString (fmt .Sprintf (" - TM validators (active): %d\n " , p .TMValidatorsActive ))
8585 str .WriteString ("Operations:\n " )
86- str .WriteString (fmt .Sprintf (" - Create validators: %s\n " , FormatDuration (p .OpCreateValidator )))
87- str .WriteString (fmt .Sprintf (" - Delegate bonding tokens: %s\n " , FormatDuration (p .OpDelegateBonding )))
88- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpDelegateBondingAmountRatio ))
89- str .WriteString (fmt .Sprintf (" Max limit ratio: %s\n " , p .OpDelegateBondingMaxSupplyRatio ))
90- str .WriteString (fmt .Sprintf (" - Delegate LP tokens: %s\n " , FormatDuration (p .OpDelegateLP )))
91- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpDelegateLPAmountRatio ))
92- str .WriteString (fmt .Sprintf (" Max limit ratio: %s\n " , p .OpDelegateLPMaxSupplyRatio ))
93- str .WriteString (fmt .Sprintf (" - Redelegate bonding tokens: %s\n " , FormatDuration (p .OpRedelegateBonding )))
94- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpRedelegateBondingAmountRatio ))
95- str .WriteString (fmt .Sprintf (" - Redelegate LP tokens: %s\n " , FormatDuration (p .OpRedelegateLP )))
96- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpRedelegateLPAmountRatio ))
97- str .WriteString (fmt .Sprintf (" - Undelegate bonding tokens: %s\n " , FormatDuration (p .OpUndelegateBonding )))
98- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpUndelegateBondingAmountRatio ))
99- str .WriteString (fmt .Sprintf (" - Undelegate LP tokens: %s\n " , FormatDuration (p .OpUndelegateLP )))
100- str .WriteString (fmt .Sprintf (" Amount ratio: %s\n " , p .OpUndelegateLPAmountRatio ))
101- str .WriteString (fmt .Sprintf (" - Withdraw validator comission: %s\n " , FormatDuration (p .OpGetValidatorRewards )))
102- str .WriteString (fmt .Sprintf (" - Withdraw delegator reward: %s\n " , FormatDuration (p .OpGetDelegatorRewards )))
103- str .WriteString (fmt .Sprintf (" - Lock rewards: %s\n " , FormatDuration (p .OpLockRewards )))
104- str .WriteString (fmt .Sprintf (" Ratio: %s\n " , p .OpLockRewardsRatio ))
86+ str .WriteString (fmt .Sprintf (" - Create validator every: %s\n " , FormatDuration (p .OpCreateValidator )))
87+ str .WriteString (fmt .Sprintf (" - Delegate bonding tokens every: %s\n " , FormatDuration (p .OpDelegateBonding )))
88+ str .WriteString (fmt .Sprintf (" Delegate amount ratio (of acc balance): %s\n " , p .OpDelegateBondingAmountRatio ))
89+ str .WriteString (fmt .Sprintf (" Max limit ratio (staked ratio): %s\n " , p .OpDelegateBondingMaxSupplyRatio ))
90+ str .WriteString (fmt .Sprintf (" - Delegate LP tokens every: %s\n " , FormatDuration (p .OpDelegateLP )))
91+ str .WriteString (fmt .Sprintf (" Delegate amount ratio (of acc balance): %s\n " , p .OpDelegateLPAmountRatio ))
92+ str .WriteString (fmt .Sprintf (" Max limit ratio (staked ratio): %s\n " , p .OpDelegateLPMaxSupplyRatio ))
93+ str .WriteString (fmt .Sprintf (" - Redelegate bonding tokens every: %s\n " , FormatDuration (p .OpRedelegateBonding )))
94+ str .WriteString (fmt .Sprintf (" Redelegate amount ratio (of del shares): %s\n " , p .OpRedelegateBondingAmountRatio ))
95+ str .WriteString (fmt .Sprintf (" - Redelegate LP tokens every: %s\n " , FormatDuration (p .OpRedelegateLP )))
96+ str .WriteString (fmt .Sprintf (" Redelegate amount ratio (of del shares): %s\n " , p .OpRedelegateLPAmountRatio ))
97+ str .WriteString (fmt .Sprintf (" - Undelegate bonding tokens every: %s\n " , FormatDuration (p .OpUndelegateBonding )))
98+ str .WriteString (fmt .Sprintf (" Undelegate amount ratio (of del shares): %s\n " , p .OpUndelegateBondingAmountRatio ))
99+ str .WriteString (fmt .Sprintf (" - Undelegate LP tokens every: %s\n " , FormatDuration (p .OpUndelegateLP )))
100+ str .WriteString (fmt .Sprintf (" Undelegate amount ratio (of del shares): %s\n " , p .OpUndelegateLPAmountRatio ))
101+ str .WriteString (fmt .Sprintf (" - Withdraw all validators comissions every: %s\n " , FormatDuration (p .OpGetValidatorRewards )))
102+ str .WriteString (fmt .Sprintf (" - Withdraw all delegators rewards every: %s\n " , FormatDuration (p .OpGetDelegatorRewards )))
103+ str .WriteString (fmt .Sprintf (" - Lock rewards every: %s\n " , FormatDuration (p .OpLockRewards )))
104+ str .WriteString (fmt .Sprintf (" Ratio of all validators: %s\n " , p .OpLockRewardsRatio ))
105105
106106 return str .String ()
107107}
@@ -187,27 +187,27 @@ func simulate(t *testing.T, profile SimProfile) {
187187func TestSimInflation (t * testing.T ) {
188188 profile := SimProfile {
189189 ID : "low_staking" ,
190- SimDuration : 1 * Year + 6 * Month ,
191- BlockTimeMin : 120 * time .Second ,
192- BlockTimeMax : 125 * time .Second ,
190+ SimDuration : 3 * Month ,
191+ BlockTimeMin : 300 * time .Second ,
192+ BlockTimeMax : 305 * time .Second ,
193193 //
194194 MainTokensBalanceWODec : 50000 ,
195195 BondingTokensBalanceWODec : 500000 ,
196196 LPTokensBalanceWODec : 100000 ,
197197 //
198- Accounts : 300 ,
198+ Accounts : 150 ,
199199 POAValidators : 3 ,
200- TMValidatorsTotal : 150 ,
200+ TMValidatorsTotal : 110 ,
201201 TMValidatorsActive : 100 ,
202202 //
203203 OpCreateValidator : 3 * time .Hour ,
204204 //
205- OpDelegateBonding : 6 * time .Hour ,
206- OpDelegateBondingAmountRatio : sdk .NewDecWithPrec (40 , 2 ),
205+ OpDelegateBonding : 2 * time .Hour ,
206+ OpDelegateBondingAmountRatio : sdk .NewDecWithPrec (50 , 2 ),
207207 OpDelegateBondingMaxSupplyRatio : sdk .NewDecWithPrec (30 , 2 ),
208208 //
209- OpDelegateLP : 1 * Day ,
210- OpDelegateLPAmountRatio : sdk .NewDecWithPrec (40 , 2 ),
209+ OpDelegateLP : 4 * time . Hour ,
210+ OpDelegateLPAmountRatio : sdk .NewDecWithPrec (50 , 2 ),
211211 OpDelegateLPMaxSupplyRatio : sdk .NewDecWithPrec (30 , 2 ),
212212 //
213213 OpRedelegateBonding : 4 * Day ,
@@ -222,10 +222,10 @@ func TestSimInflation(t *testing.T) {
222222 OpUndelegateLP : 4 * Day ,
223223 OpUndelegateLPAmountRatio : sdk .NewDecWithPrec (15 , 2 ),
224224 //
225- OpGetValidatorRewards : 1 * Week ,
226- OpGetDelegatorRewards : 1 * Day ,
225+ OpGetValidatorRewards : 1 * Month ,
226+ OpGetDelegatorRewards : 1 * Month ,
227227 //
228- OpLockRewards : 1 * Week ,
228+ OpLockRewards : 4 * Day ,
229229 OpLockRewardsRatio : sdk .NewDecWithPrec (30 , 2 ),
230230 }
231231
0 commit comments