Skip to content

Commit 62b2171

Browse files
authored
Merge pull request #1483 from opentensor/devnet
deploy testnet 3/28/2025
2 parents 9ee2ea5 + a28d6c1 commit 62b2171

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)