Skip to content

Reputation

fabianschu edited this page Aug 23, 2021 · 5 revisions

Reputation

Reputation (REP) is a non-transferable token that can be used for governance.

The Prime Multisig Gnosis Safe is the owner of the non-transferable Reputation token.

As an owner, the safe can mint REP to specific addresses or burn REP from specific addresses. This can be done via the mint, burn, batchMint, batchBurn functions.

Functions

mint

The mint function takes two inputs:

  • _repRecipient: The address of the recipient who shall receive the minted REP.
  • _repAmount: The amount of REP to be minted to the address. The REP will be added to the balance of the recipient address. The amount of REP needs to be specified in WEI => if you want to mint 2 REP to a specific address, you would need to convert this into WEI which would be 2000000000000000000. Ethereum Unit Converter is helpful for conversions.

burn

The burn function takes two inputs:

  • _repRecipient: The address of the recipient whose REP shall be burnt. The REP will be added to the balance of the recipient address.
  • _repAmount: The amount of REP to be minted to the address in WEI. The REP will be subtracted from the balance of the recipient address.

batchMint

The batchMint function takes two inputs:

  • _repRecipients: An array of recipient addresses. These are the addresses that will receive the minted REP tokens.
  • _repAmounts: An array of reputation amounts, that is the amounts of REP tokens to be minted to each address in WEI. REP will be added to the balance of each recipient address.

Important: The order is important for both arrays. The first address in _repRecipients will receive the first amount in _repAmounts. The second address in _repRecipients will receive the second amount in _repAmounts and so forth.

Managing Reputation from the GnosisSafe UI

The batchBurn function takes two inputs:

  • _repRecipients: An array of recipient addresses. These are the addresses whose REP tokens will be burnt.
  • _repAmounts: An array of reputation amounts, that is the amounts of REP tokens to be burnt from each address in WEI. The REP will be subtracted from the balance of each recipient address.

Important: The order is important for both arrays. The first amount specified in _repAmounts will be subtracted from the balance of the first address specified in _repRecipients. The second amount specified in _repAmounts will be subtracted from the balance of the second address specified in _repRecipients and so forth.

Calling the functions from the Gnosis Safe UI

  1. As an Gnosis Safe owner click on New Transaction:
Clone this wiki locally