From 053c5257def246a91429aa453e37c4ea7db1fa36 Mon Sep 17 00:00:00 2001 From: mingda Date: Sat, 12 Dec 2020 15:51:09 +0800 Subject: [PATCH] add back indexed --- contracts/DODOPrivatePool/impl/DPPTrader.sol | 6 +++--- contracts/DODOVendingMachine/impl/DVMFunding.sol | 9 +++++++-- contracts/DODOVendingMachine/impl/DVMTrader.sol | 6 +++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/contracts/DODOPrivatePool/impl/DPPTrader.sol b/contracts/DODOPrivatePool/impl/DPPTrader.sol index deab4e5..1cfe139 100644 --- a/contracts/DODOPrivatePool/impl/DPPTrader.sol +++ b/contracts/DODOPrivatePool/impl/DPPTrader.sol @@ -20,11 +20,11 @@ contract DPPTrader is DPPVault { // ============ Events ============ event DODOSwap( - address fromToken, - address toToken, + address indexed fromToken, + address indexed toToken, uint256 fromAmount, uint256 toAmount, - address trader + address indexed trader ); // ============ Modifiers ============ diff --git a/contracts/DODOVendingMachine/impl/DVMFunding.sol b/contracts/DODOVendingMachine/impl/DVMFunding.sol index 03819c3..0326a92 100644 --- a/contracts/DODOVendingMachine/impl/DVMFunding.sol +++ b/contracts/DODOVendingMachine/impl/DVMFunding.sol @@ -15,9 +15,14 @@ import {IDODOCallee} from "../../intf/IDODOCallee.sol"; contract DVMFunding is DVMVault { // ============ Events ============ - event BuyShares(address to, uint256 increaseShares, uint256 totalShares); + event BuyShares(address indexed to, uint256 increaseShares, uint256 totalShares); - event SellShares(address payer, address to, uint256 decreaseShares, uint256 totalShares); + event SellShares( + address indexed payer, + address indexed to, + uint256 decreaseShares, + uint256 totalShares + ); // ============ Buy & Sell Shares ============ diff --git a/contracts/DODOVendingMachine/impl/DVMTrader.sol b/contracts/DODOVendingMachine/impl/DVMTrader.sol index e5f6e2d..8322416 100644 --- a/contracts/DODOVendingMachine/impl/DVMTrader.sol +++ b/contracts/DODOVendingMachine/impl/DVMTrader.sol @@ -21,11 +21,11 @@ contract DVMTrader is DVMVault { // ============ Events ============ event DODOSwap( - address fromToken, - address toToken, + address indexed fromToken, + address indexed toToken, uint256 fromAmount, uint256 toAmount, - address trader + address indexed trader ); // ============ Modifiers ============