## Runtime release of [ideal staking rate change](https://github.com/polkadot-fellows/runtimes/issues/36)
✅ build hashes in sync with https://hackmd.io/ykunWzXYR-Kaz_cM2KNIlg
**Steps to reproduce**:
1. cut release branch `release-v0.9.43` from https://github.com/paritytech/polkadot
2. apply [git patch](#patch-diff) & commit changes
3. build runtimes with `srtool`
#### srtool
```bash
$ srtool --version
{
"name": "srtool",
"version": "0.11.0",
"rustc": "1.70.0",
"subwasm": "v0.20.0",
"tera": "0.2.4",
"toml": "0.2.4"
}
# build command
$ srtool build --root --engine=docker -p $RUNTIME-runtime -r ./runtime/$RUNTIME
```
#### Polkadot
🏗 Building polkadot-runtime as release using rustc 1.70.0 (90c541806 2023-05-31)
```
Summary generated with srtool v0.11.0 using the docker image paritytech/srtool:1.70.0:
Package : polkadot-runtime v0.9.43
GIT commit :
GIT tag :
GIT branch :
Rustc : rustc 1.70.0 (90c541806 2023-05-31)
Time : 2023-09-27T18:47:29Z
== Compressed
Version : polkadot-9431 (parity-polkadot-0.tx24.au0)
Metadata : V14
Size : 1.41 MB (1481776 bytes)
Compression : 78.85%
setCode : 0xb0662506ffa4f28284ba8531c5246777927995253655258a5c4d00d74a56b2b0
authorizeUpgrade : 0x9066bbc134ae69a2ec7034312a49950c5b2b5b0415d17148d03796ea9c189202
IPFS : QmbUBD9C475J6P19fGXW9QRNkQra4dVWE4TkrfLCJe3Q9T
BLAKE2_256 : 0x18ddfc15895641e2ef68d72514db282e1bc26e5922be51fc0f5adb0cb66f79f8
Wasm : ./runtime/polkadot/target/srtool/release/wbuild/polkadot-runtime/polkadot_runtime.compact.compressed.wasm
```
#### Kusama
🏗 Building kusama-runtime as release using rustc 1.70.0 (90c541806 2023-05-31)
```
Summary generated with srtool v0.11.0 using the docker image paritytech/srtool:1.70.0:
Package : kusama-runtime v0.9.43
GIT commit :
GIT tag :
GIT branch :
Rustc : rustc 1.70.0 (90c541806 2023-05-31)
Time : 2023-09-27T18:10:14Z
== Compressed
Version : kusama-9431 (parity-kusama-0.tx23.au2)
Metadata : V14
Size : 1.41 MB (1482846 bytes)
Compression : 79.08%
setCode : 0x70b3593847944d06f5a4e45b0775dc1bf828444e8589e15cd301b0cd50a339ab
authorizeUpgrade : 0x3795c29d6b1e94a3b0b9945686f68bf458ef541855516e8e42e44079c08a2514
IPFS : QmU7RAkef7bdPzKXDq3Q1MFRDRA4tVGMTLZEqRLcaCRvdW
BLAKE2_256 : 0xf59bdc04d20eda7f30e6cbda80b0d1b467a69167390479b9a4ca54409f027d90
Wasm : runtime/kusama/target/srtool/release/wbuild/kusama-runtime/kusama_runtime.compact.compressed.wasm
```
#### Westend
🏗 Building westend-runtime as release using rustc 1.70.0 (90c541806 2023-05-31)
```
Summary generated with srtool v0.11.0 using the docker image paritytech/srtool:1.70.0:
Package : westend-runtime v0.9.43
GIT commit :
GIT tag :
GIT branch :
Rustc : rustc 1.70.0 (90c541806 2023-05-31)
Time : 2023-09-27T19:02:11Z
== Compressed
Version : westend-9431 (parity-westend-0.tx22.au2)
Metadata : V14
Size : 1.24 MB (1305465 bytes)
Compression : 78.99%
setCode : 0xdde987f895f65622c5e578d0b84fa4e2282835b5c84cf9533ea257bb48e0c1f4
authorizeUpgrade : 0x8dfe9ad2685d0e062f4d999c6f99ea221fbfc5837801482a5f4d885284107e37
IPFS : Qmdib7SJynDQVm7g1maJ4dWVtYWHmkQXRW1yDfLzc4e69R
BLAKE2_256 : 0xb51ea6e47d35fd03870c4809c8c8ea081976393dfabd0c55e121e62bb6f2aced
Wasm : ./runtime/westend/target/srtool/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
```
## patch diff
```bash=
$ git diff ba42b9ce51d25bdaf52d2c61e0763a6e3da50d25
diff --git a/runtime/common/src/impls.rs b/runtime/common/src/impls.rs
index 89d3dcf97..a1ba67ac1 100644
--- a/runtime/common/src/impls.rs
+++ b/runtime/common/src/impls.rs
@@ -72,8 +72,8 @@ pub fn era_payout(
let min_annual_inflation = Perquintill::from_rational(25u64, 1000u64);
let delta_annual_inflation = max_annual_inflation.saturating_sub(min_annual_inflation);
- // 30% reserved for up to 60 slots.
- let auction_proportion = Perquintill::from_rational(auctioned_slots.min(60), 200u64);
+ // 20% reserved for up to 60 slots.
+ let auction_proportion = Perquintill::from_rational(auctioned_slots.min(60), 300u64);
// Therefore the ideal amount at stake (as a percentage of total issuance) is 75% less the
// amount that we expect to be taken up with auctions.
diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs
index 40d137095..be8e8f8e9 100644
--- a/runtime/kusama/src/lib.rs
+++ b/runtime/kusama/src/lib.rs
@@ -129,7 +129,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("kusama"),
impl_name: create_runtime_str!("parity-kusama"),
authoring_version: 2,
- spec_version: 9430,
+ spec_version: 9431,
impl_version: 0,
#[cfg(not(feature = "disable-runtime-api"))]
apis: RUNTIME_API_VERSIONS,
diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs
index 98be8a62c..0ebef06dd 100644
--- a/runtime/polkadot/src/lib.rs
+++ b/runtime/polkadot/src/lib.rs
@@ -125,7 +125,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("polkadot"),
impl_name: create_runtime_str!("parity-polkadot"),
authoring_version: 0,
- spec_version: 9430,
+ spec_version: 9431,
impl_version: 0,
#[cfg(not(feature = "disable-runtime-api"))]
apis: RUNTIME_API_VERSIONS,
diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs
index e3d67be3a..7c05d3480 100644
--- a/runtime/westend/src/lib.rs
+++ b/runtime/westend/src/lib.rs
@@ -116,7 +116,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("westend"),
impl_name: create_runtime_str!("parity-westend"),
authoring_version: 2,
- spec_version: 9430,
+ spec_version: 9431,
impl_version: 0,
#[cfg(not(feature = "disable-runtime-api"))]
apis: RUNTIME_API_VERSIONS,
```