FortaCommon
FortaCommon
Contract with the common functionality for both L1 FORT and L2 FortaBridgedPolygon. NOTE: Whitelisting functionality, used before the token was public, is deprecated. The whitelist was disabled setting whitelistDisabled = true, the current code keeps that storage layout for compatibility and removes whitelist code from _beforeTokenTransfer() to save gas. We are keeping the related roles to not break StakingEscrowFactory (already deployed), and the _setRoleAdmin() in the initializer for historical context.
ADMIN_ROLE
WHITELISTER_ROLE
WHITELIST_ROLE
deprecated_whitelistDisabled
constructor
__FortaCommon_init
Initializer method, access point to initialize inheritance tree.
sets token name and symbol, permit init and RBAC structure.
Name | Type | Description |
---|---|---|
admin | address | address for the ADMIN_ROLE of the token. |
_authorizeUpgrade
Access control for the upgrade process