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> {
331
331
// Compute root prop.
332
332
let root_prop: I96F32 = root_alpha. checked_div ( total_alpha) . unwrap_or ( zero) ;
333
333
// 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 ) ;
335
335
// 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 ) ;
337
337
// Record the alpha dividends.
338
338
alpha_dividends
339
339
. entry ( hotkey. clone ( ) )
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
207
207
// `spec_version`, and `authoring_version` are the same between Wasm and native.
208
208
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
209
209
// the compatible custom types.
210
- spec_version : 257 ,
210
+ spec_version : 258 ,
211
211
impl_version : 1 ,
212
212
apis : RUNTIME_API_VERSIONS ,
213
213
transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments