A Message is a standard format of information on the Lino blockchain similar to a Bitcoin transaction. A Transaction can contain multiple Messages. In order to prevent spam and on-chain attack, Lino blockchain applies 2 types of network fees to different types of messages, Developer Signed Messages(DSM) and General Messages(GM).
Maximum Messages Per Second () is an on-chain parameter that describes the maximum number of messages can be processed per second. It's initially set in the Genesis File and automatically updated whenever the actual MPS surpasses .
MPS Quotas are set for DSM and GM: and . If the EMA of DSM(see below) surpasses , the cost of each DSM will be significantly higher. Similarly, if the EMA of GM(see below) surpasses , the cost of each GM will be significantly higher.
Developer Signed Messages(DSM)
It's counter-intuitive to charge a network fee for micro-donation or creating posts. Network fee also discourages users to donate or create content. In order to provide a user-friendly experience, we use the Dynamic Bandwidth Model for all the developer signed messages, i.e., messages signed by App Developer Account or Affiliated Account. In other words, all developer signed messages are free, costing no network fees.
Each DSM sent by an App Developer Account (
@app) will consume a certain amount of bandwidth ().
All App Developer Accounts share the MPS Quota for DSM (). The MPS quota allocated to each App Developer Account () is proportional to the App Developer Account's LS. For example, if
@app has 1,000,000 LS while all App Developer Accounts have 2,000,000 LS in total,
@app's allocated MPS Quota should be:
An App Developer Account's bandwidth () is replenished at the speed of its allocated MPS quota () per second. has a hard limit that cannot exceed 50 times of . An App Developer Account cannot send any message if its is less than 0.
EMA of DSM () is the exponential moving average number of DSM per second.
When is low, each DSM should just consume a small amount of bandwidth. The Utilization Coefficient () is a parameter that describes how busy the blockchain is:
Current MPS of DSM of an App () is the current number of DSM sent by
@app per second. It can be simply calculated based on the number of DSM sent by
@app in the current block and the block time. For example, if the current block contains 300 DSM sent by
@app, the Current MPS of DSM of
@app should be 100(based on a 3-second block time).
When is high, each DSM should consume a larger amount of bandwidth. The App Utilization Coefficient () for each App Developer Account is a parameter that describes how much the allocated bandwidth is consumed by this App Developer Account:
The bandwidth consumption of each DSM sent by
@app () is simply the multiple of two coefficients:
Any message that is not signed by an App Developer Account or Affiliated Account is a General Message. Lino blockchain charges a Message Fee for sending General Messages. Validators collect messages fees as compensation for validating and processing General Messages. The busier the Lino blockchain, the higher the message fee is.
Current MPS of GM () is the current number of GM per second. It can be simply calculated based on the number of GM in the current block and the block time. For example, if the current block contains 30 GM, the Current MPS of GM should be 10(based on a 3-second block time).
EMA of GM () is the exponential moving average number of GM per second.
The message fee() is calculated as below:
|15 (23%)||0.1 LINO|
|33 (50%)||0.5 LINO|
|41 (62%)||1 LINO|
|66 (100%)||10 LINO|
|100 (150%)||200 LINO|