[Audit Fix] ElasticDAO.onlyAfterTokenInitialized duplicate _getEcosystem
Closed this issue · 0 comments
dmvt commented
modifier onlyAfterTokenInitialized() {
Ecosystem.Instance memory ecosystem = _getEcosystem();
bool tokenInitialized =
Token(_getEcosystem().tokenModelAddress).exists(
ecosystem.governanceTokenAddress,
ecosystem.daoAddress
);
require(tokenInitialized, 'ElasticDAO: Please call initializeToken first');
_;
}
Definition of Done
- _getEcosystem is only called once