Function: withdraw(uint256 assets, address receiver, address owner)
This function overrides the withdraw function of ERC-4626 and can be called when the cooldown is off.
Inputs
assetsControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Amount of assets to be withdrawn.
receiverControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Address of the receiver who will receive the withdrawn shares.
ownerControl: Fully controlled by the caller.
Constraints: N/A.
Impact: Owner's address of the vault shares to be burned for the withdrawal.
Branches and code coverage
Intended branches
Check if cooldown is off.
Call parent's withdraw function.
Negative behavior
If cooldown is not off, the transaction will be reverted.