Function: addYield(uint256 _amount)
This function adds the asset to this contract. The asset is intended to be USDz.
Inputs
_amount
Control: Completely controlled by the caller.
Constraints: Must be bigger than zero.
Impact: Amount to yield.
Branches and code coverage
Intended branches
Update the vesting amount as the given amount.
The given amount must be added to the
pooledUSDz
.Transfer the given amount of the asset token to this contract.
Negative behavior
Revert when the amount is zero.
Revert when the
totalSupply()
is not bigger than one.