mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated event
This commit is contained in:
parent
019c41e32a
commit
fa3d61be6f
|
@ -142,8 +142,8 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
||||||
emit Mint(
|
emit Mint(
|
||||||
user,
|
user,
|
||||||
amount,
|
amount,
|
||||||
previousBalance,
|
|
||||||
currentBalance,
|
currentBalance,
|
||||||
|
balanceIncrease,
|
||||||
vars.newStableRate,
|
vars.newStableRate,
|
||||||
vars.currentAvgStableRate,
|
vars.currentAvgStableRate,
|
||||||
vars.nextSupply
|
vars.nextSupply
|
||||||
|
@ -202,7 +202,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 Burn(user, amount, previousBalance, currentBalance, newStableRate, nextSupply);
|
emit Burn(user, amount, currentBalance, balanceIncrease, newStableRate, nextSupply);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,8 +17,8 @@ interface IStableDebtToken {
|
||||||
* @dev emitted when new stable debt is minted
|
* @dev emitted when new stable debt is minted
|
||||||
* @param user the address of the user
|
* @param user the address of the user
|
||||||
* @param amount the amount minted
|
* @param amount the amount minted
|
||||||
* @param previousBalance the previous balance of the user
|
|
||||||
* @param currentBalance the current balance of the user
|
* @param currentBalance the current balance of the user
|
||||||
|
* @param balanceIncrease the the increase in balance since the last action of the user
|
||||||
* @param newRate the rate of the debt after the minting
|
* @param newRate the rate of the debt after the minting
|
||||||
* @param avgStableRate the new average stable rate after the minting
|
* @param avgStableRate the new average stable rate after the minting
|
||||||
* @param newTotalSupply the new total supply of the stable debt token after the action
|
* @param newTotalSupply the new total supply of the stable debt token after the action
|
||||||
|
@ -26,8 +26,8 @@ interface IStableDebtToken {
|
||||||
event Mint(
|
event Mint(
|
||||||
address indexed user,
|
address indexed user,
|
||||||
uint256 amount,
|
uint256 amount,
|
||||||
uint256 previousBalance,
|
|
||||||
uint256 currentBalance,
|
uint256 currentBalance,
|
||||||
|
uint256 balanceIncrease,
|
||||||
uint256 newRate,
|
uint256 newRate,
|
||||||
uint256 avgStableRate,
|
uint256 avgStableRate,
|
||||||
uint256 newTotalSupply
|
uint256 newTotalSupply
|
||||||
|
@ -37,16 +37,16 @@ interface IStableDebtToken {
|
||||||
* @dev emitted when new stable debt is burned
|
* @dev emitted when new stable debt is burned
|
||||||
* @param user the address of the user
|
* @param user the address of the user
|
||||||
* @param amount the amount minted
|
* @param amount the amount minted
|
||||||
* @param previousBalance the previous balance of the user
|
|
||||||
* @param currentBalance the current balance of the user
|
* @param currentBalance the current balance of the user
|
||||||
|
* @param balanceIncrease the the increase in balance since the last action of the user
|
||||||
* @param avgStableRate the new average stable rate after the minting
|
* @param avgStableRate the new average stable rate after the minting
|
||||||
* @param newTotalSupply the new total supply of the stable debt token after the action
|
* @param newTotalSupply the new total supply of the stable debt token after the action
|
||||||
**/
|
**/
|
||||||
event Burn(
|
event Burn(
|
||||||
address indexed user,
|
address indexed user,
|
||||||
uint256 amount,
|
uint256 amount,
|
||||||
uint256 previousBalance,
|
|
||||||
uint256 currentBalance,
|
uint256 currentBalance,
|
||||||
|
uint256 balanceIncrease,
|
||||||
uint256 avgStableRate,
|
uint256 avgStableRate,
|
||||||
uint256 newTotalSupply
|
uint256 newTotalSupply
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user