Skip to content

Commit

Permalink
final comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Apr 25, 2024
1 parent d799c57 commit 9bc6527
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/rewards/GenericMultiRewardsVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { RewardInfo, Errors, Events } from "./definitions.sol";
/*
* @title GenericMultiRewardsVault
* @notice Non-transferrable ERC4626 vault that allows streaming of rewards in multiple tokens
* @dev Reward tokens transferred by accident without using fundReward() will be lost!
*
* Registering new reward tokens is permissioned, but adding funds is permissionless
*
Expand Down Expand Up @@ -64,6 +65,7 @@ contract GenericMultiRewardsVault is ERC4626, Ownable {
super._withdraw(caller, receiver, owner_, assets, shares);
}

/// @dev Prevent transfer
function _update(address from, address to, uint256 amount) internal virtual override {
if (from != address(0) && to != address(0)) {
revert Errors.NotAllowed();
Expand Down
3 changes: 3 additions & 0 deletions contracts/staking/GenericStakedAppreciatingVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ struct RewardTracker {
*
* The only reward token is the asset itself. Adding rewards is permisionless.
*
* Asset tokens accidentally transferred into the contract will be picked up as part of
* the next week distribution period.
*
* Unit notation
* - {qAsset} = Asset token quanta
* - {qShare} = Share token quanta
Expand Down

0 comments on commit 9bc6527

Please sign in to comment.