Function: updateWeeklyAppreciation(uint256 newAppreciation)
This updates the weekly appreciation --- in other words, the proportion of position to use.
Inputs
newAppreciationControl: Fully controlled.
Constraints: Should be greater than zero and less than or equal to 1e12.
Impact: The new fixed amount.
Branches and code coverage (including function calls)
Intended branches
Updates the
weeklyAppreciationwith the providednewAppreciation.
Negative behavior
The function reverts if
newAppreciationis zero.The function reverts if
newAppreciationis greater than 1e12.