remove constructor because using proxy mode clone

This commit is contained in:
mingda
2020-07-24 01:55:09 +08:00
parent c750bbea8d
commit bb366f71c4
3 changed files with 55 additions and 3 deletions

View File

@@ -33,10 +33,14 @@ contract DODO is Admin, Trader, LiquidityProvider {
uint256 mtFeeRate,
uint256 k,
uint256 gasPriceLimit
) external onlyOwner preventReentrant {
) external {
require(!_INITIALIZED_, "DODO_INITIALIZED");
_INITIALIZED_ = true;
// constructor
_OWNER_ = msg.sender;
emit OwnershipTransferred(address(0), _OWNER_);
_SUPERVISOR_ = supervisor;
_MAINTAINER_ = maintainer;
_BASE_TOKEN_ = baseToken;