Merge branch 'master' into feat/18

This commit is contained in:
The3D 2020-10-09 10:21:58 +02:00
commit 83b8c979d0
2 changed files with 6 additions and 13 deletions

View File

@ -142,14 +142,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
// transfer event to track balances // transfer event to track balances
emit Transfer(address(0), user, amount); emit Transfer(address(0), user, amount);
emit MintDebt( emit Mint(user, amount, previousBalance, currentBalance, balanceIncrease, vars.newStableRate);
user,
amount,
previousBalance,
currentBalance,
balanceIncrease,
vars.newStableRate
);
} }
/** /**
@ -200,7 +193,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
// transfer event to track balances // transfer event to track balances
emit Transfer(user, address(0), amount); emit Transfer(user, address(0), amount);
emit BurnDebt(user, amount, previousBalance, currentBalance, balanceIncrease); emit Burn(user, amount, previousBalance, currentBalance, balanceIncrease);
} }
/** /**

View File

@ -22,8 +22,8 @@ interface IStableDebtToken {
* @param balanceIncrease the debt increase since the last update * @param balanceIncrease the debt increase since the last update
* @param newRate the rate of the debt after the minting * @param newRate the rate of the debt after the minting
**/ **/
event MintDebt( event Mint(
address user, address indexed user,
uint256 amount, uint256 amount,
uint256 previousBalance, uint256 previousBalance,
uint256 currentBalance, uint256 currentBalance,
@ -39,8 +39,8 @@ interface IStableDebtToken {
* @param currentBalance the current balance of the user * @param currentBalance the current balance of the user
* @param balanceIncrease the debt increase since the last update * @param balanceIncrease the debt increase since the last update
**/ **/
event BurnDebt( event Burn(
address user, address indexed user,
uint256 amount, uint256 amount,
uint256 previousBalance, uint256 previousBalance,
uint256 currentBalance, uint256 currentBalance,