Commit Graph

131 Commits

Author SHA1 Message Date
FiveMovesAhead
a1d2134c3d Require min solution ratio. 2025-03-18 21:41:02 +08:00
FiveMovesAhead
ca35a60126 Add weighting based on solution ratio. 2025-03-18 21:41:01 +08:00
FiveMovesAhead
99975da7c0 Move hardcoded magic numbers to config. 2025-03-18 21:30:51 +08:00
FiveMovesAhead
7b11c445ba Merge branch 'token_locker' into test/blank_slate 2025-02-06 10:17:35 +08:00
FiveMovesAhead
e7cc3b4b86 Change reward_share and coinbase in block_data to PreciseNumber. 2025-02-06 10:03:33 +08:00
FiveMovesAhead
424d096a85 Only update adoption for active breakthroughs. 2025-01-26 10:20:21 +08:00
FiveMovesAhead
cb4d877988 Address deposit edge case. 2025-01-23 20:14:16 +08:00
FiveMovesAhead
ff4c455335 Fix coinbase reward type. 2025-01-16 16:31:22 +00:00
FiveMovesAhead
4029d4fcc2 Fix set_coinbase not exported. 2025-01-16 13:54:57 +00:00
FiveMovesAhead
64b228f394 Add support for coinbase. 2025-01-16 10:53:07 +00:00
FiveMovesAhead
a8c5fda873 Add support for TokenLocker. Remove submit-topup and submit-deposit. 2025-01-15 00:29:37 +00:00
FiveMovesAhead
14373ff80c Add delay before voting begins. 2025-01-09 11:25:43 +08:00
FiveMovesAhead
715da6cd69 Only process votes for players who have active deposits. 2025-01-05 11:13:24 +08:00
FiveMovesAhead
c8e437854a Fix bug in reward calc involving fractional delegations. 2024-12-23 04:46:15 +08:00
FiveMovesAhead
14c7b65a19 Disallow 0 fraction delegations. 2024-12-23 04:03:28 +08:00
FiveMovesAhead
63c1b5ce94 Remove temp code for phasing in deposit cutoff. 2024-12-18 18:47:09 +08:00
FiveMovesAhead
10db080c0b Include remaining duration in error msg. 2024-12-16 16:08:39 +08:00
FiveMovesAhead
930e2fe3e1 Require scaling factor to be >1.0 2024-12-15 07:34:38 +08:00
FiveMovesAhead
39e93b96bc Fix deposit check for voting. 2024-12-04 15:47:38 +00:00
FiveMovesAhead
24d8d7587a Fix check on which breakthrough is votable. 2024-12-04 15:38:23 +00:00
FiveMovesAhead
461dcd19aa Rename fields to votes tallied. 2024-12-04 04:33:21 +00:00
FiveMovesAhead
cae7912b6f Change evidence from hashmap to string. 2024-12-03 04:43:40 +00:00
FiveMovesAhead
1fb4d822f6 Allow delegating to multiple players. 2024-12-03 00:37:20 +00:00
FiveMovesAhead
9d4a3a6ca3 Update voted breakthrough after round ends. 2024-11-30 02:01:28 +00:00
FiveMovesAhead
081b405f35 Export set_vote. 2024-11-30 00:50:52 +00:00
FiveMovesAhead
bf7fa8452f Add breakthroughs. 2024-11-30 00:49:26 +00:00
FiveMovesAhead
b0ac5954ab Handle percent qualifiers == zero. 2024-11-29 18:29:13 +00:00
FiveMovesAhead
1b5587edcd Remove unused tokio dependency. 2024-11-29 16:24:42 +00:00
germ3n
e11e85e950
Optimized Pareto Algorithm (See PR#24) (#27) 2024-11-29 16:33:29 +00:00
FiveMovesAhead
59dbef3739 Update cutoff calc. 2024-11-27 17:20:21 +00:00
FiveMovesAhead
61597c3821 Small fixes. 2024-11-27 02:57:33 +00:00
FiveMovesAhead
94bb0f3c9c Rename param to min_lock_amount. 2024-11-25 11:51:31 +00:00
FiveMovesAhead
425442c6ef Rename associated_deposit to delegated_weighted_deposit for clarity 2024-11-25 11:41:46 +00:00
FiveMovesAhead
81f7bcdb7c Simplify config. 2024-11-25 11:22:10 +00:00
FiveMovesAhead
c534415860 Fix variance calculation. 2024-11-24 22:42:41 +00:00
FiveMovesAhead
a5798b04e4 More error checking to set-xxx 2024-11-24 02:36:36 +08:00
FiveMovesAhead
c27e34d32a Rename config params for clairty. 2024-11-24 00:55:15 +08:00
FiveMovesAhead
0d1c5c76a1 Add self_deposit field to OPoWBlockData. 2024-11-23 22:58:43 +08:00
FiveMovesAhead
36847ea249 Fix bug with set_reward_share. 2024-11-23 14:39:35 +08:00
FiveMovesAhead
6794ec83a7 Create reward entry for innovator even if 0 adoption. 2024-11-23 10:58:22 +08:00
FiveMovesAhead
8ea1a7f3b2 Create reward type only when needed. 2024-11-23 02:01:38 +08:00
FiveMovesAhead
87aa2bd272 Fix sampled nonces. 2024-11-22 23:04:50 +08:00
FiveMovesAhead
ea79f61e9f Add code to submit_algorithm. 2024-11-22 18:39:09 +08:00
FiveMovesAhead
45f9d96ba9 Don't use thread_rng. 2024-11-22 16:40:02 +08:00
FiveMovesAhead
2e638d14da Can delegate as long as initial deposit meets min requirement. 2024-11-22 03:30:07 +08:00
FiveMovesAhead
b190469065 Remove challenge_state from AddBlockCache. 2024-11-21 11:23:08 +08:00
FiveMovesAhead
d698526481 Add minimum deposit requirement for delegator and delegatee. 2024-11-21 03:47:50 +08:00
FiveMovesAhead
1c04d90f09 Update player_block_data.delegatee. 2024-11-21 03:29:51 +08:00
FiveMovesAhead
3b9e1d309a Simplify context. 2024-11-21 03:14:00 +08:00
FiveMovesAhead
6dd0cda715 Remove prev block data. 2024-11-20 14:02:52 +08:00