Token
Last updated
Last updated
Ethereum address:
Polygon address:
The DIMO token follows the standard with some other extensions in order to improve security and access control to the contract functions:
functionality to pause and unpause token transfer.
to manage access to specific functions. In the table below, all roles and the addresses associated with are described.
DEFAULT_ADMIN_ROLE
DEPOSITOR_ROLE
MINTER_ROLE
BURNER_ROLE
PAUSER_ROLE
UPGRADER_ROLE
The token follows the upgradable pattern to allow changes and improvements in the future. It is worth to say that DIMO token is meant to be managed by a governance system that will have the ability to remove the upgradability from the contract if so decided. For now, the token is managed by the multi-signature wallet that belongs to the .
The DIMO token was initially created in the Ethereum Mainnet. However, since the DIMO system lives in the Polygon network, we decided to also move the tokens to the same place. That said, a well known and established bridge was chosen: , that employs a combination of smart contracts and a to move tokens from Ethereum to Polygon and vice versa.
The following steps happen when a token holder bridges their tokens from Ethereum to Polygon:
Token holder approves to spend their tokens.
Token holder executes a transaction to call the function depositFor
.
Transfer the tokens to contract to be locked.
The total supply on the Ethereum side does not change.
The contract executes a transaction to call the function deposit
in the DIMO token in the Polygon side.
This function mints the same amount of tokens for the same token holder address on the Polygon side.
The total supply in the Polygon side increases.
Similarly, the following steps happen to bridge the tokens back from Polygon to Ethereum:
The tokens are burned in the Polygon side, causing the total supply to decrease.
The tokens locked in the contract are unlocked and transferred back to the token holder address.
In case new tokens are minted in the Polygon side, the contract mints the equivalent amount in the Ethereum side.