Function: cooldownShares(uint256 shares, address owner)
This function redeems shares with a cooldown period.
Inputs
shares
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Amount of shares to redeem.
owner
Control: Fully controlled by the caller.
Constraints: N/A.
Impact: Address of the owner of shares.
Branches and code coverage
Intended branches
Call parent's redemption for silo, which receives redemptions.
Set the owner's
cooldownEnd
to the currentblock.timestamp
andcooldownDuration
.Add the owner's
underlyingAmount
amount of assets that return redemptions.