Giveth / giv-token-contracts

GNU General Public License v3.0
27 stars 8 forks source link

Add disable to UniswapV3RewardToken #53

Closed paxthemax closed 2 years ago

paxthemax commented 2 years ago

Disable UniV3 Rewards

This PR will add a disabled status to the UniV3RewardToken contract.

The contract owner can set the reward token contract as disabled. If the contract is disabled, it will:

This will prevent stakers from claiming rewards and allow tracking of invalid rewards (when the contract is disabled) for potential later reimbursement.

This should allow safe disabling of the token, and re-enabling it in case of failure;