Function: setDepositToken(address _depositToken, bool _isDepositToken)
Adds/removes a token from the deposit token whitelist.
Inputs
_depositTokenControl: Fully controlled by the owner.
Constraints: None.
Impact: Whitelists/unwhitelists the specified token for staking.
_isDepositTokenControl: Fully controlled by the owner.
Constraints: None.
Impact: Sets the
isDepositTokenflag to the specified value for the specified token.
Branches and code coverage (including function calls)
Intended branches
Sets the
isDepositTokenflag to the specified value for the specified token.
Negative behavior
Assumes there are no disruptive side effects. Currently, if
isDepositTokenis set tofalsefor a token that has already been staked, the staked amount will be lost. However, the users can still claim their rewards.Should not be callable by anyone other than the owner.