fix remove DODO
This commit is contained in:
@@ -12,6 +12,7 @@ import {Ownable} from "./lib/Ownable.sol";
|
||||
import {IDODO} from "./intf/IDODO.sol";
|
||||
import {ICloneFactory} from "./helper/CloneFactory.sol";
|
||||
|
||||
|
||||
/**
|
||||
* @title DODOZoo
|
||||
* @author DODO Breeder
|
||||
@@ -62,7 +63,7 @@ contract DODOZoo is Ownable {
|
||||
address quoteToken = IDODO(dodo)._QUOTE_TOKEN_();
|
||||
require(isDODORegistered(baseToken, quoteToken), "DODO_NOT_REGISTERED");
|
||||
_DODO_REGISTER_[baseToken][quoteToken] = address(0);
|
||||
for (uint256 i = 0; i < _DODOs.length - 1; i++) {
|
||||
for (uint256 i = 0; i <= _DODOs.length - 1; i++) {
|
||||
if (_DODOs[i] == dodo) {
|
||||
_DODOs[i] = _DODOs[_DODOs.length - 1];
|
||||
_DODOs.pop();
|
||||
|
||||
Reference in New Issue
Block a user