Function: deployPosition()
The fundsDeployed
should be false
. After the call, fundsDeployed
= true.
Branches and code coverage (including function calls)
Negative behavior
The
fundsDeployed
is true.Second call after successful deploy of position
Function call analysis
hook.addr.beforeDeploy()
What is controllable? N/A.
If return value 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? This function is called if
hook.command.shouldCallBeforeDeploy() == true
. In the case of the HookAave contract, this function borrows the max amount from Aave and sends it to the strategyVault. It can revert if thestrategyBorrowToken
balace of the hook.addr contract is less thanborrowAmount
.
fetchDeployAmounts()
What is controllable? N/A.
If return value controllable, how is it used and how can it go wrong? With incorrect matching of elements between lists.
What happens if it reverts, reenters, or does other unusual control flow? There is no problem.
_deployPosition(vaults, epochIds, amounts, vaultType);
What is controllable? N/A.
If return value 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? Deposit tokens to
vaults
. It can revert if balance ofasset
token is not enough.
hook.addr.afterDeploy()
What is controllable? N/A.
If return value 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? This function is called if
hook.command.shouldCallAfterDeploy() == true
.