Skip to content

Commit

Permalink
♻️ escrow: use standard initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
itofarina committed Oct 9, 2023
1 parent ef251d3 commit 1725765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-ads-bow.md
@@ -0,0 +1,5 @@
---
"@exactly/protocol": patch
---

🔥 escrow: drop unchained initializers
6 changes: 3 additions & 3 deletions contracts/periphery/EscrowedEXA.sol
Expand Up @@ -42,9 +42,9 @@ contract EscrowedEXA is ERC20VotesUpgradeable, AccessControlUpgradeable {
/// @dev can only be called once.
function initialize(uint40 vestingPeriod_, uint256 reserveRatio_) external initializer {
__ERC20_init("escrowed EXA", "esEXA");
__ERC20Permit_init_unchained("escrowed EXA");
__ERC20Votes_init_unchained();
__AccessControl_init_unchained();
__ERC20Permit_init("escrowed EXA");
__ERC20Votes_init();
__AccessControl_init();

_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
/// @dev address(0) holds the TRANSFERRER_ROLE so the token can be minted or burnt.
Expand Down

0 comments on commit 1725765

Please sign in to comment.