@@ -101,7 +101,7 @@ fn test_swap_total_coldkey_stake() {
101
101
let other_coldkey = U256 :: from ( 3 ) ;
102
102
let hotkey = U256 :: from ( 4 ) ;
103
103
let other_hotkey = U256 :: from ( 5 ) ;
104
- let stake = 100 ;
104
+ let stake = 10_000 ;
105
105
106
106
let netuid = 1u16 ;
107
107
add_network ( netuid, 1 , 0 ) ;
@@ -1234,13 +1234,13 @@ fn test_coldkey_swap_total() {
1234
1234
let netuid1 = 1u16 ;
1235
1235
let netuid2 = 2u16 ;
1236
1236
let netuid3 = 3u16 ;
1237
- SubtensorModule :: add_balance_to_coldkey_account ( & coldkey, 1000 ) ;
1238
- SubtensorModule :: add_balance_to_coldkey_account ( & delegate1, 1000 ) ;
1239
- SubtensorModule :: add_balance_to_coldkey_account ( & delegate2, 1000 ) ;
1240
- SubtensorModule :: add_balance_to_coldkey_account ( & delegate3, 1000 ) ;
1241
- SubtensorModule :: add_balance_to_coldkey_account ( & nominator1, 1000 ) ;
1242
- SubtensorModule :: add_balance_to_coldkey_account ( & nominator2, 1000 ) ;
1243
- SubtensorModule :: add_balance_to_coldkey_account ( & nominator3, 1000 ) ;
1237
+ SubtensorModule :: add_balance_to_coldkey_account ( & coldkey, 100_000 ) ;
1238
+ SubtensorModule :: add_balance_to_coldkey_account ( & delegate1, 100_000 ) ;
1239
+ SubtensorModule :: add_balance_to_coldkey_account ( & delegate2, 100_000 ) ;
1240
+ SubtensorModule :: add_balance_to_coldkey_account ( & delegate3, 100_000 ) ;
1241
+ SubtensorModule :: add_balance_to_coldkey_account ( & nominator1, 100_000 ) ;
1242
+ SubtensorModule :: add_balance_to_coldkey_account ( & nominator2, 100_000 ) ;
1243
+ SubtensorModule :: add_balance_to_coldkey_account ( & nominator3, 100_000 ) ;
1244
1244
1245
1245
// Setup initial state
1246
1246
add_network ( netuid1, 13 , 0 ) ;
@@ -1263,113 +1263,113 @@ fn test_coldkey_swap_total() {
1263
1263
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1264
1264
hotkey1,
1265
1265
netuid1,
1266
- 100
1266
+ 10_000
1267
1267
) ) ;
1268
1268
assert_ok ! ( SubtensorModule :: add_stake(
1269
1269
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1270
1270
hotkey2,
1271
1271
netuid1,
1272
- 100
1272
+ 10_000
1273
1273
) ) ;
1274
1274
assert_ok ! ( SubtensorModule :: add_stake(
1275
1275
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1276
1276
hotkey3,
1277
1277
netuid1,
1278
- 100
1278
+ 10_000
1279
1279
) ) ;
1280
1280
assert_ok ! ( SubtensorModule :: add_stake(
1281
1281
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1282
1282
delegate1,
1283
1283
netuid1,
1284
- 100
1284
+ 10_000
1285
1285
) ) ;
1286
1286
assert_ok ! ( SubtensorModule :: add_stake(
1287
1287
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1288
1288
delegate2,
1289
1289
netuid1,
1290
- 100
1290
+ 10_000
1291
1291
) ) ;
1292
1292
assert_ok ! ( SubtensorModule :: add_stake(
1293
1293
<<Test as Config >:: RuntimeOrigin >:: signed( coldkey) ,
1294
1294
delegate3,
1295
1295
netuid1,
1296
- 100
1296
+ 10_000
1297
1297
) ) ;
1298
1298
1299
1299
assert_ok ! ( SubtensorModule :: add_stake(
1300
1300
<<Test as Config >:: RuntimeOrigin >:: signed( delegate1) ,
1301
1301
hotkey1,
1302
1302
netuid1,
1303
- 100
1303
+ 10_000
1304
1304
) ) ;
1305
1305
assert_ok ! ( SubtensorModule :: add_stake(
1306
1306
<<Test as Config >:: RuntimeOrigin >:: signed( delegate2) ,
1307
1307
hotkey2,
1308
1308
netuid1,
1309
- 100
1309
+ 10_000
1310
1310
) ) ;
1311
1311
assert_ok ! ( SubtensorModule :: add_stake(
1312
1312
<<Test as Config >:: RuntimeOrigin >:: signed( delegate3) ,
1313
1313
hotkey3,
1314
1314
netuid1,
1315
- 100
1315
+ 10_000
1316
1316
) ) ;
1317
1317
1318
1318
assert_ok ! ( SubtensorModule :: add_stake(
1319
1319
<<Test as Config >:: RuntimeOrigin >:: signed( delegate1) ,
1320
1320
delegate1,
1321
1321
netuid1,
1322
- 100
1322
+ 10_000
1323
1323
) ) ;
1324
1324
assert_ok ! ( SubtensorModule :: add_stake(
1325
1325
<<Test as Config >:: RuntimeOrigin >:: signed( delegate2) ,
1326
1326
delegate2,
1327
1327
netuid1,
1328
- 100
1328
+ 10_000
1329
1329
) ) ;
1330
1330
assert_ok ! ( SubtensorModule :: add_stake(
1331
1331
<<Test as Config >:: RuntimeOrigin >:: signed( delegate3) ,
1332
1332
delegate3,
1333
1333
netuid1,
1334
- 100
1334
+ 10_000
1335
1335
) ) ;
1336
1336
1337
1337
assert_ok ! ( SubtensorModule :: add_stake(
1338
1338
<<Test as Config >:: RuntimeOrigin >:: signed( nominator1) ,
1339
1339
hotkey1,
1340
1340
netuid1,
1341
- 100
1341
+ 10_000
1342
1342
) ) ;
1343
1343
assert_ok ! ( SubtensorModule :: add_stake(
1344
1344
<<Test as Config >:: RuntimeOrigin >:: signed( nominator2) ,
1345
1345
hotkey2,
1346
1346
netuid1,
1347
- 100
1347
+ 10_000
1348
1348
) ) ;
1349
1349
assert_ok ! ( SubtensorModule :: add_stake(
1350
1350
<<Test as Config >:: RuntimeOrigin >:: signed( nominator3) ,
1351
1351
hotkey3,
1352
1352
netuid1,
1353
- 100
1353
+ 10_000
1354
1354
) ) ;
1355
1355
1356
1356
assert_ok ! ( SubtensorModule :: add_stake(
1357
1357
<<Test as Config >:: RuntimeOrigin >:: signed( nominator1) ,
1358
1358
delegate1,
1359
1359
netuid1,
1360
- 100
1360
+ 10_000
1361
1361
) ) ;
1362
1362
assert_ok ! ( SubtensorModule :: add_stake(
1363
1363
<<Test as Config >:: RuntimeOrigin >:: signed( nominator2) ,
1364
1364
delegate2,
1365
1365
netuid1,
1366
- 100
1366
+ 10_000
1367
1367
) ) ;
1368
1368
assert_ok ! ( SubtensorModule :: add_stake(
1369
1369
<<Test as Config >:: RuntimeOrigin >:: signed( nominator3) ,
1370
1370
delegate3,
1371
1371
netuid1,
1372
- 100
1372
+ 10_000
1373
1373
) ) ;
1374
1374
1375
1375
assert_eq ! (
@@ -1714,7 +1714,7 @@ fn test_schedule_swap_coldkey_execution() {
1714
1714
let new_coldkey = U256 :: from ( 2 ) ;
1715
1715
let hotkey = U256 :: from ( 3 ) ;
1716
1716
let netuid = 1u16 ;
1717
- let stake_amount = 100 ;
1717
+ let stake_amount = 10_000 ;
1718
1718
1719
1719
add_network ( netuid, 13 , 0 ) ;
1720
1720
register_ok_neuron ( netuid, hotkey, old_coldkey, 0 ) ;
0 commit comments