@@ -17,17 +17,17 @@ def calculate_pool_reward(height: uint32) -> uint64:
17
17
"""
18
18
19
19
if height == 0 :
20
- return uint64 (int (( 7 / 8 ) * 21000000 * _mojo_per_chia ) )
20
+ return uint64 (( 7 / 8 ) * 21000000 * _mojo_per_chia )
21
21
elif height < 3 * _blocks_per_year :
22
- return uint64 (int (( 7 / 8 ) * 2 * _mojo_per_chia ) )
22
+ return uint64 (( 7 / 8 ) * 2 * _mojo_per_chia )
23
23
elif height < 6 * _blocks_per_year :
24
- return uint64 (int (( 7 / 8 ) * 1 * _mojo_per_chia ) )
24
+ return uint64 (( 7 / 8 ) * 1 * _mojo_per_chia )
25
25
elif height < 9 * _blocks_per_year :
26
- return uint64 (int (( 7 / 8 ) * 0.5 * _mojo_per_chia ) )
26
+ return uint64 (( 7 / 8 ) * 0.5 * _mojo_per_chia )
27
27
elif height < 12 * _blocks_per_year :
28
- return uint64 (int (( 7 / 8 ) * 0.25 * _mojo_per_chia ) )
28
+ return uint64 (( 7 / 8 ) * 0.25 * _mojo_per_chia )
29
29
else :
30
- return uint64 (int (( 7 / 8 ) * 0.125 * _mojo_per_chia ) )
30
+ return uint64 (( 7 / 8 ) * 0.125 * _mojo_per_chia )
31
31
32
32
33
33
def calculate_base_farmer_reward (height : uint32 ) -> uint64 :
@@ -40,14 +40,14 @@ def calculate_base_farmer_reward(height: uint32) -> uint64:
40
40
rates increase continuously.
41
41
"""
42
42
if height == 0 :
43
- return uint64 (int (( 1 / 8 ) * 21000000 * _mojo_per_chia ) )
43
+ return uint64 (( 1 / 8 ) * 21000000 * _mojo_per_chia )
44
44
elif height < 3 * _blocks_per_year :
45
- return uint64 (int (( 1 / 8 ) * 2 * _mojo_per_chia ) )
45
+ return uint64 (( 1 / 8 ) * 2 * _mojo_per_chia )
46
46
elif height < 6 * _blocks_per_year :
47
- return uint64 (int (( 1 / 8 ) * 1 * _mojo_per_chia ) )
47
+ return uint64 (( 1 / 8 ) * 1 * _mojo_per_chia )
48
48
elif height < 9 * _blocks_per_year :
49
- return uint64 (int (( 1 / 8 ) * 0.5 * _mojo_per_chia ) )
49
+ return uint64 (( 1 / 8 ) * 0.5 * _mojo_per_chia )
50
50
elif height < 12 * _blocks_per_year :
51
- return uint64 (int (( 1 / 8 ) * 0.25 * _mojo_per_chia ) )
51
+ return uint64 (( 1 / 8 ) * 0.25 * _mojo_per_chia )
52
52
else :
53
- return uint64 (int (( 1 / 8 ) * 0.125 * _mojo_per_chia ) )
53
+ return uint64 (( 1 / 8 ) * 0.125 * _mojo_per_chia )
0 commit comments