Function: transferInRewards(uint256 amount)
Allows the owner to transfer rewards from the controller contract into this contract.
Inputs
amount
Constraints: Should not be zero.
Impact: The amount of rewards to transfer.
Branches and code coverage (including function calls)
Intended branches
Owner could transfer rewards.
Negative behavior
The contract call is reverted when
amount
is zero.The contract call is reverted when the controller does not have enough tokens.
Function call analysis
transferInRewards -> eUSD.transferFrom(msg.sender, address(this), amount)
External/Internal? External.
Argument control?
amount
.Impact: Transfer eUSD tokens from the controller to this contract.