From 2fd47f3d401175a4f100813399f84e05ee6db6e9 Mon Sep 17 00:00:00 2001 From: mingda Date: Wed, 8 Jul 2020 17:54:47 +0800 Subject: [PATCH] [audit]#6 add baseToken and quoteToken address to dodo birth event --- contracts/DODOZoo.sol | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contracts/DODOZoo.sol b/contracts/DODOZoo.sol index 1025a21..d42ce99 100644 --- a/contracts/DODOZoo.sol +++ b/contracts/DODOZoo.sol @@ -12,7 +12,6 @@ import {Ownable} from "./lib/Ownable.sol"; import {IDODO} from "./intf/IDODO.sol"; import {DODO} from "./DODO.sol"; - /** * @title DODOZoo * @author DODO Breeder @@ -24,7 +23,7 @@ contract DODOZoo is Ownable { // ============ Events ============ - event DODOBirth(address newBorn); + event DODOBirth(address newBorn, address baseToken, address quoteToken); // ============ Breed DODO Function ============ @@ -55,7 +54,7 @@ contract DODOZoo is Ownable { ); IDODO(newBornDODO).transferOwnership(_OWNER_); _DODO_REGISTER_[baseToken][quoteToken] = newBornDODO; - emit DODOBirth(newBornDODO); + emit DODOBirth(newBornDODO, baseToken, quoteToken); return newBornDODO; }