Skip to content

Commit 06146ed

Browse files
authored
Merge pull request #1643 from opentensor/fix-comment
Fix up a comment to reflect what the code is doing
2 parents fbc809d + dc8d26c commit 06146ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/subtensor/src/staking/remove_stake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ impl<T: Config> Pallet<T> {
617617
pub fn get_max_amount_remove(netuid: u16, limit_price: u64) -> Result<u64, Error<T>> {
618618
// Corner case: root and stao
619619
// There's no slippage for root or stable subnets, so if limit price is 1e9 rao or
620-
// higher, then max_amount equals u64::MAX, otherwise it is 0.
620+
// lower, then max_amount equals u64::MAX, otherwise it is 0.
621621
if (netuid == Self::get_root_netuid()) || (SubnetMechanism::<T>::get(netuid)) == 0 {
622622
if limit_price <= 1_000_000_000 {
623623
return Ok(u64::MAX);

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
209209
// `spec_version`, and `authoring_version` are the same between Wasm and native.
210210
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
211211
// the compatible custom types.
212-
spec_version: 269,
212+
spec_version: 270,
213213
impl_version: 1,
214214
apis: RUNTIME_API_VERSIONS,
215215
transaction_version: 1,

0 commit comments

Comments
 (0)