-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStake.sol
More file actions
31 lines (24 loc) · 1.01 KB
/
Stake.sol
File metadata and controls
31 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
import {console} from "forge-std/Test.sol";
import {IERC20} from "../interfaces/IERC20.sol";
import {IRewardRouterV2} from "../interfaces/IRewardRouterV2.sol";
import {IRewardTracker} from "../interfaces/IRewardTracker.sol";
import {IGovToken} from "../interfaces/IGovToken.sol";
import "../Constants.sol";
contract Stake {
IERC20 constant gmx = IERC20(GMX);
IGovToken constant gmxDao = IGovToken(GMX_DAO);
IRewardRouterV2 constant rewardRouter = IRewardRouterV2(REWARD_ROUTER_V2);
IRewardTracker constant rewardTracker = IRewardTracker(REWARD_TRACKER);
// Task 1 - Stake GMX
function stake(uint256 gmxAmount) external {}
// Task 2 - Unstake GMX
function unstake(uint256 gmxAmount) external {}
// Task 3 - Claim rewards
function claimRewards() external {}
// Task 4 - Get staked amount
function getStakedAmount() external view returns (uint256) {}
// Task 5 - Delegate
function delegate(address delegatee) external {}
}