đź“–
Wiki
  • RAILGUN 101
    • Overview
    • Getting Started
    • RAILGUN Privacy System
      • Zero-Knowledge Cryptography
      • Trusted Setup Ceremony
      • Community Broadcasters
      • Privacy Overview
    • Wallets and Keys
    • Shielding Tokens
    • Using Shielded Tokens
      • Gasless Interactions
    • Unshielding Tokens
    • Integrating RAILGUN
      • RAILGUN SDKs
      • Adapt Modules
      • Example - DEX Swaps
    • RAILGUN Deductions
    • Helpful Links
  • User Compliance Tools
    • Private Proofs of Innocence
    • RAILGUN Assurance Suite
    • Koinly Tax Exports
  • RAIL Token & Governance
    • RAIL Token Overview
    • RAIL Active Governor Rewards
    • RAIL Tokenomics
    • How to Stake RAIL
    • Decentralized Governance
Powered by GitBook
On this page

Was this helpful?

  1. RAILGUN 101

RAILGUN Deductions

PreviousExample - DEX SwapsNextHelpful Links

Last updated 10 months ago

Was this helpful?

Protocol Deductions

For and , the smart contracts take a 0.25% deduction per shield and unshield transaction which is then sent to the DAO “treasury address”. Protocol deductions are distributed to RAILGUN decentralized governance participants over time to RAIL stakers in the form of .

Broadcaster Premiums

To use RAILGUN, users can supply a to facilitate their interactions (users can self-relay interactions if they want to save on gas). Broadcasters require a % premium of the overall gas price for the interaction, but not for the interaction amount. Thus, Broadcaster Premiums do not increase with interaction size.

As RAILGUN interactions are (users do not need ETH/MATIC/BNB to send interactions once assets are shielded), broadcaster premiums contain the underlying blockchain's gas converted to whichever token that users are transacting in. For example, if you are sending DAI on the Ethereum blockchain, then the Broadcaster Premium (which also contains the blockchain interaction gas) is sent entirely in DAI and you do not need to hold/spend ETH in your 0zk address.

Therefore, Broadcaster Premiums vary depending on:

  • Which chain you are using RAILGUN on

  • Gas price at the time of the interaction

  • What % of the gas Broadcasters decide to require as an additional premium

Premiums are broadcast across the and are only needed if users decide to send the interaction and consider the premium & gas to be acceptable. Broadcaster Premiums are up to the individual Broadcasters themselves, but generally they are ~10% of the total gas.

Broadcasters compete to provide the lowest premiums.

Shielding
Unshielding
Active Governor Rewards
Broadcaster
gasless
Waku P2P network