Function: withdraw(address to, uint256 amount)
This function allows _stakingVault to withdraw _USDF tokens from this contract.
Inputs
toControl: Full control.
Constraints: N/A.
Impact: The address of the receiver of
_USDFtokens.
amountControl: Full control.
Constraints: N/A.
Impact: Amount of
_USDFtokens to be withdrawn.
Branches and code coverage
Negative behavior
Caller is not a
_stakingVault.
Function call analysis
this._USDF.transfer(to, amount)What is controllable?
toandamount.If the return value is controllable, how is it used and how can it go wrong? N/A.
What happens if it reverts, reenters or does other unusual control flow? Reverts if the
_USDFbalance of this contract is less than the providedamounts.