From 37c6de78ce38b5bae54bb8aa3fdfba4ecc9a087b Mon Sep 17 00:00:00 2001 From: owen05 Date: Sat, 13 Feb 2021 21:13:06 +0800 Subject: [PATCH] vdodo add event --- contracts/DODOToken/DODORecharge.sol | 4 ++-- contracts/DODOToken/vDODOToken.sol | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contracts/DODOToken/DODORecharge.sol b/contracts/DODOToken/DODORecharge.sol index f344536..b781dde 100644 --- a/contracts/DODOToken/DODORecharge.sol +++ b/contracts/DODOToken/DODORecharge.sol @@ -19,7 +19,7 @@ contract DODORecharge is InitializableOwnable { address immutable _DODO_TOKEN_; address immutable _DODO_APPROVE_PROXY_; - event DeductionDODO(address user,uint256 _amount); + event DeductDODO(address user,uint256 _amount); constructor(address dodoAddress, address dodoApproveProxy) public { _DODO_TOKEN_ = dodoAddress; @@ -28,7 +28,7 @@ contract DODORecharge is InitializableOwnable { function deductionDODO(uint256 amount) external { IDODOApproveProxy(_DODO_APPROVE_PROXY_).claimTokens(_DODO_TOKEN_, msg.sender, address(this), amount); - emit DeductionDODO(msg.sender, amount); + emit DeductDODO(msg.sender, amount); } // ============ Owner Functions ============ diff --git a/contracts/DODOToken/vDODOToken.sol b/contracts/DODOToken/vDODOToken.sol index ac2a95b..d104ebe 100644 --- a/contracts/DODOToken/vDODOToken.sol +++ b/contracts/DODOToken/vDODOToken.sol @@ -71,8 +71,10 @@ contract vDODOToken is InitializableOwnable { event MintVDODO(address user, address superior, uint256 mintDODO); event RedeemVDODO(address user, uint256 receiveDODO, uint256 burnDODO, uint256 feeDODO); + event DonateDODO(address user, uint256 donateDODO); event SetCantransfer(bool allowed); + event PreDeposit(uint256 dodoAmount); event ChangePerReward(uint256 dodoPerBlock); event UpdateDODOFeeBurnRatio(uint256 dodoFeeBurnRatio); @@ -217,6 +219,7 @@ contract vDODOToken is InitializableOwnable { alpha = uint112( uint256(alpha).add(DecimalMath.divFloor(dodoAmount, _TOTAL_STAKING_POWER_)) ); + emit DonateDODO(msg.sender, dodoAmount); } function preDepositedBlockReward(uint256 dodoAmount) public { @@ -227,6 +230,7 @@ contract vDODOToken is InitializableOwnable { dodoAmount ); _TOTAL_BLOCK_REWARD_ = _TOTAL_BLOCK_REWARD_.add(dodoAmount); + emit PreDeposit(dodoAmount); } // ============ ERC20 Functions ============