-
Notifications
You must be signed in to change notification settings - Fork 0
Add stake on behalf of account functionality #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 17 commits
edf2c93
2bcc499
7adef64
e96ff5a
21b638b
a495e46
34a9ba1
abf7107
c8be7bd
301a35f
8a43afe
545eda7
c4f1948
f8a89cf
345aecf
a3630c5
b254570
bacaa1a
0a46b1a
c1b0fc1
4b7e38f
646034f
307b70a
91f6606
5250377
71b1b65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ artifacts/ | |
| .vscode | ||
| typechain-types | ||
| scripts/safe/*.json | ||
| scripts/deployStakingRewards/*testnet*.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| * @notice Interface for the StakingRewards contract | ||
| * @dev Based on Synthetix StakingRewards with token locking support | ||
| */ | ||
| interface IStakingRewards { | ||
|
Check warning on line 11 in contracts/staking/interfaces/IStakingRewards.sol
|
||
| /* ========== STRUCTS ========== */ | ||
|
|
||
| struct LockedStake { | ||
|
|
@@ -19,7 +19,7 @@ | |
|
|
||
| /* ========== VIEWS ========== */ | ||
|
|
||
| function rewardsToken() external view returns (IERC20); | ||
|
Check warning on line 22 in contracts/staking/interfaces/IStakingRewards.sol
|
||
|
|
||
| function stakingToken() external view returns (IERC20); | ||
|
|
||
|
|
@@ -33,8 +33,6 @@ | |
|
|
||
| function rewardPerTokenStored() external view returns (uint256); | ||
|
|
||
| function rewardsDistribution() external view returns (address); | ||
|
|
||
| function userRewardPerTokenPaid(address account) external view returns (uint256); | ||
|
|
||
| function rewards(address account) external view returns (uint256); | ||
|
|
@@ -61,6 +59,8 @@ | |
|
|
||
| function stake(uint256 amount) external; | ||
|
|
||
| function stakeOnBehalf(address account, uint256 amount) external; | ||
|
|
||
| function withdraw(uint256 amount) external; | ||
|
|
||
| function lockStake(uint256 amount, uint256 lockDuration) external; | ||
|
|
@@ -71,6 +71,12 @@ | |
| uint256 lockDuration | ||
| ) external; | ||
|
|
||
| function stakeAndLockOnBehalf( | ||
| address account, | ||
| uint256 amountToStake, | ||
| uint256 lockDuration | ||
| ) external; | ||
|
|
||
| function getReward() external; | ||
|
|
||
| function exit() external; | ||
|
|
@@ -79,13 +85,13 @@ | |
|
|
||
| function notifyRewardAmount(uint256 reward) external; | ||
|
|
||
| function setRewardsDistribution(address _rewardsDistribution) external; | ||
|
|
||
| function recoverERC20(address tokenAddress, uint256 tokenAmount) external; | ||
|
|
||
| function setRewardsDuration(uint256 _rewardsDuration) external; | ||
|
|
||
| function pause() external; | ||
|
|
||
| function unpause() external; | ||
|
|
||
| function setInitialLockPeriod(uint256 duration) external; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.