Function: updateWeeklyAppreciation(uint256 newAppreciation)
This updates the weekly appreciation --- in other words, the proportion of position to use.
Inputs
newAppreciation
Control: 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
weeklyAppreciation
with the providednewAppreciation
.
Negative behavior
The function reverts if
newAppreciation
is zero.The function reverts if
newAppreciation
is greater than 1e12.