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