UNSTAKE_WINDOW()of time to redeem their tokens. If they do not redeem before this time period has elapsed, then the cool down timer is reset and they will need to activate the cool down again.
coolDown()period, as detailed below.
msg.sendermust already have a balance of AAVE token.
amountof AAVE rewards that the
msg.senderhas accrued, with the option of sending the rewards to a different account.
stakeractivated the cool down by calling
COOLDOWN_SECONDSin unix time has passed.
COOLDOWN_SECONDSvalue is 864000 seconds (i.e. 10 days). This value should always be checked directly from the contracts.
UNSTAKE_WINDOWvalue is 172800 seconds (i.e. 2 days). This value should always be checked directly from the contracts.
function getNextCooldownTimestamp(uint256 fromCooldownTimestamp, uint256 amountToReceive, address toAddress, uint256 toBalance) public returns (uint256)- code
stake()), while they already have a cool down period active:
UNSTAKE_WINDOW), then the cool down period will remain expired.
redeem(). This will reset the cool down timestamp.
claimRewards(). The cool down timestamp is not affected.
msg.senderremains the same.
msg.sender, a weighted average is calculated with the current cool down timestamp of the user.
msg.senderhave valid cool down periods, and the
msg.sendercool down period ends before the receiver, then the receiver's cool down period remains the same.