Function: allocate(uint256 amount)
Allocates funds to the idleStrategy.
Inputs
amount
Control: Full.
Constraints: None.
Impact: The amount to allocate to the idle strategy.
Branches and code coverage
Intended branches
Idle strategy funds increased.
Function call analysis
SafeERC20.safeTransferFrom(this.asset, msg.sender, address(this), amount)
What is controllable?
amount
.If the return value is controllable, how is it used and how can it go wrong? Discarded.
What happens if it reverts, reenters or does other unusual control flow? N/A.
this.asset.balanceOf(address(this))
What is controllable? Nothing.
If the return value is controllable, how is it used and how can it go wrong? Amount of assets pulled in.
What happens if it reverts, reenters or does other unusual control flow? N/A.
this.idleStrategy.allocate(underlyingAllocation)
What is controllable? Nothing.
If the return value is controllable, how is it used and how can it go wrong? Discarded.
What happens if it reverts, reenters or does other unusual control flow? N/A.