Try   HackMD

Kusama: $-based parameters

::indices

IndexDeposit

Value

1 * DOLLARS

Description

The deposit needed for reserving an index.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/indices/src/lib.rs#L51-L52

::balances

ExistentialDeposit

Value

1 * CENTS

Description

The minimum balance required to create or keep an account open. This prevents "dust accounts" from filling storage. When the free plus the reserved balance (i.e. the total balance) fall below this, then the account is said to be dead; and it loses its functionality as well as any prior history and all information on it is removed from the chain's state.
No account should ever have a total balance that is strictly between 0 and the existential deposit (exclusive). If this ever happens, it indicates either a bug in this pallet or an erroneous raw mutation of storage.

https://github.com/paritytech/substrate/blob/v3.0.0/frame/balances/src/lib.rs#L41-L47

::transaction-payment

TransactionByteFee

Value

10 * MILLICENTS

Description

The fee to be paid for making a transaction; the per-byte portion.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/transaction-payment/src/lib.rs#L241-L242

::democracy

MinimumDeposit

Value

1 * DOLLARS

Description

The minimum amount to be used as a deposit for a public referendum proposal.

Usage

https://github.com/paritytech/substrate/blob/v3.0.0/frame/democracy/src/lib.rs#L227-L228

PreimageByteDeposit

Value

10 * MILLICENTS

Description

The amount of balance that must be deposited per byte of preimage stored.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/democracy/src/lib.rs#L565-L566

::elections-phragmen

CandidacyBond

Value

1 * DOLLARS

Description

How much should be locked up in order to submit one's candidacy.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/elections-phragmen/src/lib.rs#L195-L196

::treasury

ProposalBondMinimum

Value

20 * DOLLARS

Description

Minimum amount of funds that should be placed in a deposit for making a proposal.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/treasury/src/lib.rs#L113-L114

::tips

TipReportDepositBase

Value

1 * DOLLARS

Description

The amount held on deposit for placing a tip report.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/tips/src/lib.rs#L97-L98

::bounties

DataDepositPerByte

Value

1 * CENTS

Description

The amount held on deposit per byte within the tip report reason or bounty description.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/bounties/src/lib.rs#L123-L124

BountyDepositBase

Value

1 * DOLLARS

Description

The amount held on deposit for placing a bounty proposal.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/bounties/src/lib.rs#L108-L109

BountyValueMinimum

Value

2 * DOLLARS

Description

Minimum value for a bounty.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/bounties/src/lib.rs#L120-121

::identity

BasicDeposit

Value

10 * DOLLARS

Description

The amount held on deposit for a registered identity.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/identity/src/lib.rs#L104-L105

FieldDeposit

Value

250 * CENTS

Description

The amount held on deposit per additional field for a registered identity.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/identity/src/lib.rs#L107-L108

SubAccountDeposit

Value

2 * DOLLARS

Description

The amount held on deposit for a registered subaccount. This should account for the fact that one storage item's value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/identity/src/lib.rs#L110-L113

::recovery

ConfigDepositBase

Value

5 * DOLLARS

Description

The base amount of currency needed to reserve for creating a recovery configuration.

This is held for an additional storage item whose value size is 2 + sizeof(BlockNumber, Balance) bytes.

https://github.com/paritytech/substrate/blob/v3.0.0/frame/recovery/src/lib.rs#L188-L192

FriendDepositFactor

Value

50 * CENTS

Description

The amount of currency needed per additional user when creating a recovery configuration. This is held for adding sizeof(AccountId) bytes more into a pre-existing storage value.

https://github.com/paritytech/substrate/blob/v3.0.0/frame/recovery/src/lib.rs#L18-L149

RecoveryDeposit

Value

5 * DOLLARS

Description

The base amount of currency needed to reserve for starting a recovery.

This is primarily held for deterring malicious recovery attempts, and should have a value large enough that a bad actor would choose not to place this deposit. It also acts to fund additional storage item whose value size is sizeof(BlockNumber, Balance + T * AccountId) bytes. Where T is a configurable threshold.

https://github.com/paritytech/substrate/blob/v3.0.0/frame/recovery/src/lib.rs#L202-L209

::society

CandidateDeposit

Value

10 * DOLLARS

Description

The minimum amount of a deposit required for a bid to be made.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/society/src/lib.rs#L288-L289

WrongSideDeduction

Value

2 * DOLLARS

Definition

The amount of the unpaid reward that gets deducted in the case that either a skeptic doesn't vote or someone votes in the wrong way.

https://github.com/paritytech/substrate/blob/v3.0.0/frame/society/src/lib.rs#L18-L243

Usage

frame::society:
https://github.com/paritytech/substrate/blob/v3.0.0/frame/society/src/lib.rs#L291-L293
https://github.com/paritytech/substrate/blob/v3.0.0/frame/society/src/lib.rs#L1305-L1460

PeriodSpend

Value

500 * DOLLARS

Description

The amount of incentive paid within each period. Doesn't include VoterTip.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/society/src/lib.rs#L299-L300

::vesting

MinVestedTransfer

Value

100 * DOLLARS

Description

The minimum amount transferred to call vested_transfer.
https://github.com/paritytech/substrate/blob/v3.0.0/frame/vesting/src/lib.rs#L80-L81


polkadot$ grep -IR 'DOLLARS\|CENTS\|MILLICENTS' --include \*.rs runtime/kusama

runtime/kusama/src/lib.rs:      pub const IndexDeposit: Balance = 1 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const ExistentialDeposit: Balance = 1 * CENTS;
runtime/kusama/src/lib.rs:      pub const TransactionByteFee: Balance = 10 * MILLICENTS;
runtime/kusama/src/lib.rs:      pub const MinimumDeposit: Balance = 1 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const PreimageByteDeposit: Balance = 10 * MILLICENTS;
runtime/kusama/src/lib.rs:      pub const CandidacyBond: Balance = 1 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const ProposalBondMinimum: Balance = 20 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const TipReportDepositBase: Balance = 1 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const DataDepositPerByte: Balance = 1 * CENTS;
runtime/kusama/src/lib.rs:      pub const BountyDepositBase: Balance = 1 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const BountyValueMinimum: Balance = 2 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const BasicDeposit: Balance = 10 * DOLLARS;       // 258 bytes on-chain
runtime/kusama/src/lib.rs:      pub const FieldDeposit: Balance = 250 * CENTS;        // 66 bytes on-chain
runtime/kusama/src/lib.rs:      pub const SubAccountDeposit: Balance = 2 * DOLLARS;   // 53 bytes on-chain
runtime/kusama/src/lib.rs:      pub const ConfigDepositBase: Balance = 5 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const FriendDepositFactor: Balance = 50 * CENTS;
runtime/kusama/src/lib.rs:      pub const RecoveryDeposit: Balance = 5 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const CandidateDeposit: Balance = 10 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const WrongSideDeduction: Balance = 2 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const PeriodSpend: Balance = 500 * DOLLARS;
runtime/kusama/src/lib.rs:      pub const MinVestedTransfer: Balance = 100 * DOLLARS;
runtime/kusama/src/constants.rs:        pub const DOLLARS: Balance = DOTS / 6;
runtime/kusama/src/constants.rs:        pub const CENTS: Balance = DOLLARS / 100;
runtime/kusama/src/constants.rs:        pub const MILLICENTS: Balance = CENTS / 1_000;
runtime/kusama/src/constants.rs:                items as Balance * 20 * DOLLARS + (bytes as Balance) * 100 * MILLICENTS
runtime/kusama/src/constants.rs:                        let p = super::currency::CENTS;
runtime/kusama/src/constants.rs:        use super::currency::{CENTS, DOLLARS, MILLICENTS};
runtime/kusama/src/constants.rs:                // A full block should cost 16 DOLLARS
runtime/kusama/src/constants.rs:                let y = 16 * DOLLARS;
runtime/kusama/src/constants.rs:                assert!(x.max(y) - x.min(y) < MILLICENTS);
runtime/kusama/src/constants.rs:                let y = CENTS / 10;
runtime/kusama/src/constants.rs:                assert!(x.max(y) - x.min(y) < MILLICENTS);

Polkadot: $-based parameters

grep -IR 'DOLLARS\|CENTS\|MILLICENTS' --include \*.rs runtime/polkadot

runtime/polkadot/src/lib.rs:	pub const IndexDeposit: Balance = 10 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const ExistentialDeposit: Balance = 100 * CENTS;
runtime/polkadot/src/lib.rs:	pub const TransactionByteFee: Balance = 10 * MILLICENTS;
runtime/polkadot/src/lib.rs:	// Minimum 4 CENTS/byte
runtime/polkadot/src/lib.rs:	pub const MinimumDeposit: Balance = 100 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const PreimageByteDeposit: Balance = 1 * CENTS;
runtime/polkadot/src/lib.rs:	pub const CandidacyBond: Balance = 100 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const TipReportDepositBase: Balance = 1 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const DataDepositPerByte: Balance = 1 * CENTS;
runtime/polkadot/src/lib.rs:	pub const BountyDepositBase: Balance = 1 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const BountyValueMinimum: Balance = 10 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const ParathreadDeposit: Balance = 500 * DOLLARS;
runtime/polkadot/src/lib.rs:	pub const MinVestedTransfer: Balance = 100 * DOLLARS;
runtime/polkadot/src/lib.rs:		pallet_elections_phragmen::migrations_3_0_0::apply::<Self>(5 * CENTS, DOLLARS)
runtime/polkadot/src/constants.rs:	pub const DOLLARS: Balance = DOTS / 100;       // 10_000_000_000
runtime/polkadot/src/constants.rs:	pub const CENTS: Balance = DOLLARS / 100;      // 100_000_000
runtime/polkadot/src/constants.rs:	pub const MILLICENTS: Balance = CENTS / 1_000; // 100_000
runtime/polkadot/src/constants.rs:		items as Balance * 20 * DOLLARS + (bytes as Balance) * 100 * MILLICENTS
runtime/polkadot/src/constants.rs:			let p = super::currency::CENTS;
runtime/polkadot/src/constants.rs:	use super::currency::{CENTS, DOLLARS, MILLICENTS};
runtime/polkadot/src/constants.rs:		// A full block should cost 16 DOLLARS
runtime/polkadot/src/constants.rs:		let y = 16 * DOLLARS;
runtime/polkadot/src/constants.rs:		assert!(x.max(y) - x.min(y) < MILLICENTS);
runtime/polkadot/src/constants.rs:		let y = CENTS / 10;
runtime/polkadot/src/constants.rs:		assert!(x.max(y) - x.min(y) < MILLICENTS);

Polkadot vs Kusama relative parameters

IndexDeposit: 10
ExistentialDeposit: 100
TransactionByteFee: 1
MinimumDeposit: 100
PreimageByteDeposit: 100
CandidacyBond: 100
ProposalBondMinimum: 5
TipReportDepositBase: 1
DataDepositPerByte: 1
BountyDepositBase: 1
BountyValueMinimum: 5
ParathreadDeposit: $500 vs _
MinVestedTransfer: 1
BasicDeposit: _ vs $10
FieldDeposit: _ vs $2.50
SubAccountDeposit: _ vs $2
ConfigDepositBase: _ vs $5
FriendDepositFactor: _ vs $0.50
RecoveryDeposit: _ vs $5
CandidateDeposit: _ vs $10
WrongSideDeduction: _ vs $2
PeriodSpend: _ vs $500