File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1610,7 +1610,7 @@ async fn main() -> Result<()> {
16101610 let v = ( w * 65535.0 ) . round( ) as u16 ;
16111611 if v > 0 { uids. push( * uid) ; vals. push( v) ; }
16121612 }
1613- let burn = ew - assigned;
1613+ let burn = 1.0 - assigned;
16141614 if burn > 0.001 {
16151615 let bv = ( burn * 65535.0 ) . round( ) as u16 ;
16161616 if let Some ( pos) = uids. iter( ) . position( |& u| u == 0 ) {
@@ -3749,9 +3749,8 @@ async fn handle_block_event(
37493749 }
37503750 }
37513751
3752- // Burn only the unresolved portion within this challenge's emission share.
3753- // Previously: 1.0 - assigned_weight (wrong: burned OTHER challenges' share)
3754- let burn_weight = emission_weight - assigned_weight;
3752+ // Remaining weight goes to burn (UID 0)
3753+ let burn_weight = 1.0 - assigned_weight;
37553754 if burn_weight > 0.001 {
37563755 let burn_u16 = ( burn_weight * 65535.0 ) . round ( ) as u16 ;
37573756 if let Some ( pos) = uids. iter ( ) . position ( |& u| u == 0 ) {
You can’t perform that action at this time.
0 commit comments