[audit]#6 add baseToken and quoteToken address to dodo birth event

This commit is contained in:
mingda
2020-07-08 17:54:47 +08:00
parent 9f974667a7
commit 2fd47f3d40

View File

@@ -12,7 +12,6 @@ import {Ownable} from "./lib/Ownable.sol";
import {IDODO} from "./intf/IDODO.sol"; import {IDODO} from "./intf/IDODO.sol";
import {DODO} from "./DODO.sol"; import {DODO} from "./DODO.sol";
/** /**
* @title DODOZoo * @title DODOZoo
* @author DODO Breeder * @author DODO Breeder
@@ -24,7 +23,7 @@ contract DODOZoo is Ownable {
// ============ Events ============ // ============ Events ============
event DODOBirth(address newBorn); event DODOBirth(address newBorn, address baseToken, address quoteToken);
// ============ Breed DODO Function ============ // ============ Breed DODO Function ============
@@ -55,7 +54,7 @@ contract DODOZoo is Ownable {
); );
IDODO(newBornDODO).transferOwnership(_OWNER_); IDODO(newBornDODO).transferOwnership(_OWNER_);
_DODO_REGISTER_[baseToken][quoteToken] = newBornDODO; _DODO_REGISTER_[baseToken][quoteToken] = newBornDODO;
emit DODOBirth(newBornDODO); emit DODOBirth(newBornDODO, baseToken, quoteToken);
return newBornDODO; return newBornDODO;
} }