-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add future proof function to redirect rewards directly to stashes
- Loading branch information
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.6.12; | ||
|
||
import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; | ||
import '@openzeppelin/contracts/utils/Address.sol'; | ||
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; | ||
|
||
contract RedirectableGauge{ | ||
using SafeERC20 for IERC20; | ||
using Address for address; | ||
|
||
|
||
mapping(address => address) public redirectMap; | ||
|
||
constructor() public { | ||
} | ||
|
||
function deposit(uint256 _amount) external{ | ||
|
||
} | ||
|
||
function balanceOf(address _account) external view returns (uint256){ | ||
return 0; | ||
} | ||
|
||
function withdraw(uint256 _amount) external{ | ||
|
||
} | ||
|
||
function claim_rewards() external{ | ||
|
||
} | ||
|
||
function reward_tokens(uint256 _token) external view returns(address){ | ||
return address(0); | ||
} | ||
|
||
function set_rewards_receiver(address _receiver) external returns(bool){ | ||
redirectMap[msg.sender] = _receiver; | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters