Logging address in event.

This commit is contained in:
Sowmayjain 2019-01-29 23:40:18 +05:30
parent 61b18ec874
commit a78dcd5e0c

View File

@ -97,7 +97,7 @@ contract GlobalVar is Registry {
contract LoopNewCDP is GlobalVar { contract LoopNewCDP is GlobalVar {
event LevNewCDP(uint cdpNum, uint ethLocked, uint daiMinted); event LevNewCDP(uint cdpNum, address borrower, uint ethLocked, uint daiMinted);
function pethPEReth(uint ethNum) public view returns (uint rPETH) { function pethPEReth(uint ethNum) public view returns (uint rPETH) {
MakerCDP loanMaster = MakerCDP(cdpAddr); MakerCDP loanMaster = MakerCDP(cdpAddr);
@ -142,7 +142,7 @@ contract LoopNewCDP is GlobalVar {
resolveBank.transferCDPInternal(uint(cup), msg.sender); resolveBank.transferCDPInternal(uint(cup), msg.sender);
} }
emit LevNewCDP(uint(cup), eth2Lock, dai2Mint); emit LevNewCDP(uint(cup), msg.sender, eth2Lock, dai2Mint);
} }
} }