MarginX 2.0 gitbook v1.1
  • 🚀Getting Started: MarginX 2.0
  • MARGINX 2.0 & ALO
    • Vision
    • Mechanic & Foundation of ALO
    • Comparison Between Order Book And Swap
    • Risk and Reward of Liquidity Providers
    • Product Comparison
    • MarginX ALO: Whitepaper
  • Technical structure
    • Contract Structure
      • CoastDAO Module
    • The Fund Module
      • Contract Specific Design
      • Cross-Chain Description
    • Contract Events
      • Strategy Factory
      • Strategy Pair
      • DssCdpManager
      • DSProxyFactory
      • Vat
    • Contract Invocation Method
      • DSProxyFactory
      • ProxyRegistry
      • DSProxy
      • The Price of the Collateral Assets
      • DssProxyActions
        • Adding Liquidity For New Perpetual Markets (First Time)
        • Creating Order (Providing Liquidity)
        • Request For Withdrawing Liquidity
        • Withdrawal
      • StrategyFactory
  • MarginX Spot
    • Swap
    • Pool
      • Add Liquidity
      • Remove Liquidity
    • Farm
      • Deposit LP Tokens
      • Withdraw LP Token
    • Supported Networks
  • MARGINX SUBGRAPH
    • Overview
    • Query Examples
  • MarginX 1.0
    • Built On f(x)Core
    • Decentralized Order Book
    • Referral Programme
    • MarginX NFTs
    • Maker Liquidity Pool
    • MarginX 1.0 Litepaper
  • ERC20 Token Factory
    • Token Factory Supported Networks
    • Create Token
    • Provide Token Details
    • Interact with Token
    • Role Management
  • Help desk
    • Perpetual Trading 101
    • User Guide (Video)
    • MarginX 2.0 FAQ
    • Contact us
Powered by GitBook
On this page
  1. ERC20 Token Factory

Role Management

PreviousInteract with TokenNextPerpetual Trading 101

Last updated 9 months ago

In this module, you have the ability to assign and revoke roles for various wallet addresses.

The contract defines four key roles:

  • Admin: Holds the highest level of permissions, capable of granting and revoking roles.

  • Minter: Has the ability to mint new tokens.

  • Pauser: Can pause and unpause the contract.

  • Upgrader: Can upgrade the contract implementation.

When a token is first created in the Create Module, the wallet you used to deploy the token will automatically be assigned all of these roles.

Here’s how you can manage roles:

  • To check if a wallet has a specific role, paste the wallet address and select the role you wish to verify.

  • To grant roles to other wallet addresses, ensure that you are connected to a wallet with the Admin role.

  • To renounce a role, connect to the wallet address holding that role.

  • To revoke a role, connect to a wallet with the Admin role, select the role to be revoked, and paste the corresponding wallet address.

Check if a wallet has a specific role. This is a read transaction and does not consume any gas.
Grant, Renounce and Revoke roles.