Skip to content

Commit c66f782

Browse files
committed
update test
1 parent 1526f89 commit c66f782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/tests/voting_power.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ fn test_set_voting_power_ema_alpha() {
271271

272272
// Get default alpha
273273
let default_alpha = SubtensorModule::get_voting_power_ema_alpha(f.netuid);
274-
assert_eq!(default_alpha, 100_000_000_000_000_000); // 0.1 * 10^18
274+
assert_eq!(default_alpha, 3_570_000_000_000_000); // 0.00357 * 10^18 = 2 weeks e-folding
275275

276276
// Set new alpha (only root can do this)
277277
let new_alpha: u64 = 500_000_000_000_000_000; // 0.5 * 10^18

0 commit comments

Comments
 (0)