I would like to propose adjustment in tokenomics params to reduce impact of gap between real and target block time.
Target time on parachains is 12s.
Those are our avg block times calculated based on onchain data.
Average block time in last 1 day 16.4 s Average block time in last 1 week 15.7 s Average block time in last 2 weeks 15.5 s Average block time in last 1 month 16.1 s Average block time in last 2 month 15.7 s
As you can see we have long term 30% gap. It impacts all features which base on block number (not timestamp).
For example mining rewards are block based - which directly impact APR of owners and stakers. It is worth noting that in app.phala.network all values you see are also block based.
If you calculate your APR time based you will see it differs for 30%
Worth noting (mentioned by team):
This issue occurs because substrate has limited (obvious) throughput in processing blocks and simultaneously Phala extremely utilize onchain actions.
Compare Moonriver and Khala below (at most it is even 100x more transactions).
Btw. Moonriver is second most used chain ;)
As you can see lot of things happens on Khala and it is probably not possible to improve throughput in short term.
However this proposal is to reduce impact of that issue.
IMO block time in any contract calculations should not be fixed to target 12s value.
I think we should periodically adjust that value to reflect real block time.
Depending how much it will vary we should adjust it monthly based on last month average block time.
Very reasonable, especially given the block time is not achievable by the Kusama validator throughputs.
I hereby confirm that the Proposal and the Proposal Hash is correct. I've reproduced the same encoded proposal and hash on my own.
- Encoded Call:
- NotePreimage extrinsic on Subscan: https://khala.subscan.io/extrinsic/851551-21
Proposal Hash (from the extrinsic event):
We have to resubmit the proposal due to the wrong preimage encoding! Please don't vote or second it!
The encoding of this proposal is incorrect. We need to submit the "raw encoded proposal" instead of the polkadot.js prefixed version. Please don't second this proposal!
Details here: https://forum.phala.network/t/topic/3274/12