You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/builder-guides/leverage_parachains/interact_with_xc20.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,10 @@ Currently, the best way to create XC20 asset is via [Polkadot.js](https://polkad
46
46
-**Note**: We suggest setting the `minimum balance` to `1 Pico`, which will only require 0.000000000001 unit of the asset.
47
47
-`asset id`: the selected id for the asset. This should not match an already-existing asset id.
48
48
49
+
:::note
50
+
Please make sure the account creating the asset has sufficient balance to pay the [rent fee](/docs/learn/tokenomics2/tokenomics2-network-fees.md#Rent_Fee).
Copy file name to clipboardExpand all lines: docs/learn/interoperability/xcm/building-with-xcm/create-xc20-assets.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,10 @@ Before the asset's Metadata can be set, we will need to create an asset on the n
26
26
6. When everything is filled in, click **Next** on the next screen.
27
27
7. Set your **roles** and create the asset by signing with the creator account.
28
28
29
+
:::note
30
+
Please make sure the account creating the asset has sufficient balance to pay the [rent fee](/docs/learn/tokenomics2/tokenomics2-network-fees.md#Rent_Fee).
Copy file name to clipboardExpand all lines: docs/learn/tokenomics2/tokenomics2-network-fees.md
+45-25Lines changed: 45 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@ sidebar_position: 1
4
4
5
5
import Figure from "/src/components/figure"
6
6
7
-
8
7
# Fee Model
9
8
10
9
Each block is a limited resource - it can only fit a limited amount of transactions. This is an oversimplification, but the point is that every transaction included in the block consumes a portion of the block’s resources.
@@ -13,11 +12,11 @@ Astar is a parachain in the Polkadot ecosystem, which relies on the shared secur
13
12
14
13
As a simple example - consider a token transferred from **Alice** to **Bob**. If such a transaction consumes **0.001 seconds** of execution time, executing two such transactions in a single block would consume **0.002 seconds**. Calling a smart contract, e.g., a DEX swap, is much more resource intensive and may, for example, consume **0.01 seconds, or 100x that of a simple transfer from one account to another**.
15
14
16
-
The other limiting factor is the __Proof of Validity__ (PoV) size. Since Polkadot validators provide security by validating blocks authored by parachain collators, they need access to the data required to validate the block. Expanding on the previous example with **Alice** and **Bob**, Astar would need to provide Polkadot validators with information about how many initial tokens ****Alice** and **Bob** had and the transaction itself. This is (almost) enough data for validators to work with, but it is strictly limited to only **5 MB (megabytes)** per block.
15
+
The other limiting factor is the **Proof of Validity** (PoV) size. Since Polkadot validators provide security by validating blocks authored by parachain collators, they need access to the data required to validate the block. Expanding on the previous example with **Alice** and **Bob**, Astar would need to provide Polkadot validators with information about how many initial tokens \***\*Alice** and **Bob** had and the transaction itself. This is (almost) enough data for validators to work with, but it is strictly limited to only **5 MB (megabytes)** per block.
17
16
18
17
In summary, there are two main factors limiting block production: `ref time` and `PoV size`, which taken all together, are collectively referred to as `weight`, an important concept when calculating transaction fees.
Transaction Fees on Astar comprise of Native (Substrate) and EVM fees. Native and EVM transaction fees are calculated in different ways. Tokenomics 2.0 aligns the fees calculation between the two systems so that transactions consuming the same amount of block resources are priced roughly the same regardless of transaction type (Native or EVM).
23
22
@@ -67,7 +66,6 @@ s &= \frac{block\_weight}{max\_block\_normal\_dispatch\_weight}
67
66
\end{align}
68
67
$$
69
68
70
-
71
69
with several configuration parameters:
72
70
73
71
- $s*$ - ideal block fullness; desired long term average block fullness.
@@ -77,15 +75,15 @@ with several configuration parameters:
77
75
- $c_{max}$ - the largest possible value of fee multiplier $c$.
78
76
79
77
and using $s$ to describe current block fullness:
78
+
80
79
- If $s > s*$, meaning block fullness if **more** than the ideal, the adjustment will be a positive number.
81
80
- If $s < s*$, meaning block fullness is **less** than the idea, the adjustment will be a negative number.
82
81
83
82
Based on the network usage (congestion), factor $c$ will either increase or decrease from block to block. If network is used heavily and blocks are full, it will increase, scaling up the weight fee and thus making the transactions more expensive. If network congestion is below the ideal the fee multiplier will decrease, making transactions less expensive.
84
83
85
-
86
84
## EVM Fees
87
85
88
-
Astar is fully Ethereum compatible. This means it also supports Ethereum’s [gas concept](https://ethereum.org/en/developers/docs/gas/). Gas is similar to weight but not quite the same. As a result, Ethereum transaction fees are calculated a bit differently. A simplified formula looks like this
86
+
Astar is fully Ethereum compatible. This means it also supports Ethereum’s [gas concept](https://ethereum.org/en/developers/docs/gas/). Gas is similar to weight but not quite the same. As a result, Ethereum transaction fees are calculated a bit differently. A simplified formula looks like this
The values for the parameters above are set so that EVM fee and the Native fee are equal and equal to 0.5 ASTR or 0.005 SDN for an average weight and length transaction with no rent fee.
134
132
135
-
## Fee Alignment Transition Period
133
+
## Rent Fee
134
+
135
+
Executing certain on-chain actions can result in additional storage being created.
136
+
E.g. if an account decides to create an _identity_, this has to be stored on-chain, whoever is running a node needs to store this piece of information somehow.
137
+
To prevent _spamming_, such actions usually incur some _rent_ fee which needs to be _deposited_.
138
+
Unlike regular transaction fee, once the storage entry has been removed, the _rent_ fee is also returned to the account.
139
+
140
+
For concrete values per entry & per byte, please refer to the table above.
141
+
142
+
Some actions which incur _rent_ fee are:
143
+
144
+
- creating an identity, including sub-accounts
145
+
- creating a multisig call
146
+
- creating an asset & metadata (**NOTE: see table below**)
147
+
- creating a proxy, announcing proxy calls
148
+
- interacting with WASM smart contracts
149
+
150
+
151
+
For `pallet-assets`_asset_, creation price is higher than the regular price.
152
+
This is because creating an asset carries more _weight_ than simply creating an e.g. _proxy_.
153
+
Assets can be registered as cross-chain assets and they can be interacted via precompiles, which makes them usable by any account.
136
154
137
-
Legacy Astar Network tokenomics fee model was not aligned between the two systems - same resource consumption via native or Ethereum transactions resulted in significantly different fees. To allow network stakeholders to adjust to the Tokenomics 2.0 fee model, alignment of fees between the two systems will be gradually introduced once the change is enacted (live) on the network.
155
+
| Action | Price on Shibuya | Price on Shiden | Price on Astar |
0 commit comments