Function: cooldownAssets(uint256 assets, address owner)
This function withdraws assets with a cooldown period.
Inputs
assetsControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Amount of assets to withdraw.
ownerControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Address of the owner of assets.
Branches and code coverage
Intended branches
Set owner's
cooldownEndto currentblock.timestamppluscooldownDuration.Add owner's
underlyingAmountamount of assets.Call parent's withdrawal for silo, which receives withdrawals.