File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -331,9 +331,9 @@ impl<T: Config> Pallet<T> {
331331 // Compute root prop.
332332 let root_prop: I96F32 = root_alpha. checked_div ( total_alpha) . unwrap_or ( zero) ;
333333 // Compute root dividends
334- let root_divs: I96F32 = dividend. saturating_mul ( root_prop) ;
334+ let root_divs: I96F32 = dividend. saturating_mul ( root_prop) . max ( zero ) ;
335335 // Compute alpha dividends
336- let alpha_divs: I96F32 = dividend. saturating_sub ( root_divs) ;
336+ let alpha_divs: I96F32 = dividend. saturating_sub ( root_divs) . max ( zero ) ;
337337 // Record the alpha dividends.
338338 alpha_dividends
339339 . entry ( hotkey. clone ( ) )
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
207207 // `spec_version`, and `authoring_version` are the same between Wasm and native.
208208 // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
209209 // the compatible custom types.
210- spec_version : 257 ,
210+ spec_version : 258 ,
211211 impl_version : 1 ,
212212 apis : RUNTIME_API_VERSIONS ,
213213 transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments