mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Removed timestamp from stableDebtToken
This commit is contained in:
parent
b5efaa740f
commit
edfcdd6db4
|
@ -21,7 +21,6 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
||||||
|
|
||||||
uint256 private _avgStableRate;
|
uint256 private _avgStableRate;
|
||||||
mapping(address => uint40) _timestamps;
|
mapping(address => uint40) _timestamps;
|
||||||
uint40 _totalSupplyTimestamp;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
address pool,
|
address pool,
|
||||||
|
@ -123,7 +122,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
||||||
_usersData[user] = vars.newStableRate;
|
_usersData[user] = vars.newStableRate;
|
||||||
|
|
||||||
//solium-disable-next-line
|
//solium-disable-next-line
|
||||||
_totalSupplyTimestamp = _timestamps[user] = uint40(block.timestamp);
|
_timestamps[user] = uint40(block.timestamp);
|
||||||
|
|
||||||
|
|
||||||
//calculates the updated average stable rate
|
//calculates the updated average stable rate
|
||||||
|
@ -173,7 +172,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
||||||
_timestamps[user] = 0;
|
_timestamps[user] = 0;
|
||||||
} else {
|
} else {
|
||||||
//solium-disable-next-line
|
//solium-disable-next-line
|
||||||
_totalSupplyTimestamp = _timestamps[user] = uint40(block.timestamp);
|
_timestamps[user] = uint40(block.timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (balanceIncrease > amount) {
|
if (balanceIncrease > amount) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user