Function: transferFrom(address from, address to, uint256 amount)
Transfers someone else's vault shares to the recipient and spends allowance.
Inputs
fromControl: Arbitrary.
Constraints: Must have allowance for
amountof shares.Impact: Sender of the vault shares.
toControl: Arbitrary.
Constraints: None.
Impact: Recipient of the vault shares.
amountControl: Arbitrary.
Constraints: Must be less than or equal to the total shares pending withdrawal for the user.
Impact: Amount of shares to transfer.
Branches and code coverage
Intended branches
Transfer succeeds.
Negative behavior
Transfer fails due to exceeding allowance.
Transfer fails due to exceeding pending withdrawal quantity for
from.Transfer fails due to exceeding sender balance.