-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f77b4
commit 41ec980
Showing
12 changed files
with
568 additions
and
24 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,8 @@ | ||
// SPDX-License-Identifier: Unlicensed | ||
pragma solidity ^0.8.0; | ||
|
||
interface IDelegateRegistry { | ||
function delegation(address delegator, bytes32 id) external view returns (address); | ||
function setDelegate(bytes32 id, address delegate) external; | ||
function clearDelegate(bytes32 id) external; | ||
} |
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,47 @@ | ||
// SPDX-License-Identifier: Unlicensed | ||
pragma solidity ^0.8.0; | ||
|
||
interface BaseRewardPool { | ||
event RewardAdded(uint256 reward); | ||
event RewardPaid(address indexed user, uint256 reward); | ||
event Staked(address indexed user, uint256 amount); | ||
event Transfer(address indexed from, address indexed to, uint256 value); | ||
event Withdrawn(address indexed user, uint256 amount); | ||
|
||
function addExtraReward(address _reward) external returns (bool); | ||
function balanceOf(address account) external view returns (uint256); | ||
function clearExtraRewards() external; | ||
function currentRewards() external view returns (uint256); | ||
function duration() external view returns (uint256); | ||
function earned(address account) external view returns (uint256); | ||
function extraRewards(uint256) external view returns (address); | ||
function extraRewardsLength() external view returns (uint256); | ||
function getReward() external returns (bool); | ||
function getReward(address _account, bool _claimExtras) external returns (bool); | ||
function historicalRewards() external view returns (uint256); | ||
function lastTimeRewardApplicable() external view returns (uint256); | ||
function lastUpdateTime() external view returns (uint256); | ||
function newRewardRatio() external view returns (uint256); | ||
function operator() external view returns (address); | ||
function periodFinish() external view returns (uint256); | ||
function pid() external view returns (uint256); | ||
function processIdleRewards() external; | ||
function queueNewRewards(uint256 _rewards) external returns (bool); | ||
function queuedRewards() external view returns (uint256); | ||
function rewardManager() external view returns (address); | ||
function rewardPerToken() external view returns (uint256); | ||
function rewardPerTokenStored() external view returns (uint256); | ||
function rewardRate() external view returns (uint256); | ||
function rewardToken() external view returns (address); | ||
function rewards(address) external view returns (uint256); | ||
function stake(uint256 _amount) external returns (bool); | ||
function stakeAll() external returns (bool); | ||
function stakeFor(address _for, uint256 _amount) external returns (bool); | ||
function stakingToken() external view returns (address); | ||
function totalSupply() external view returns (uint256); | ||
function userRewardPerTokenPaid(address) external view returns (uint256); | ||
function withdraw(uint256 amount, bool claim) external returns (bool); | ||
function withdrawAll(bool claim) external; | ||
function withdrawAllAndUnwrap(bool claim) external; | ||
function withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool); | ||
} |
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,14 @@ | ||
// SPDX-License-Identifier: Unlicensed | ||
pragma solidity ^0.8.0; | ||
|
||
interface CrvDepositorWrapper { | ||
function BAL() external view returns (address); | ||
function BALANCER_POOL_TOKEN() external view returns (address); | ||
function BALANCER_VAULT() external view returns (address); | ||
function BAL_ETH_POOL_ID() external view returns (bytes32); | ||
function WETH() external view returns (address); | ||
function crvDeposit() external view returns (address); | ||
function deposit(uint256 _amount, uint256 _minOut, bool _lock, address _stakeAddress) external; | ||
function getMinOut(uint256 _amount, uint256 _outputBps) external view returns (uint256); | ||
function setApprovals() external; | ||
} |
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,17 @@ | ||
// SPDX-License-Identifier: Unlicensed | ||
pragma solidity ^0.8.0; | ||
|
||
interface IRewards { | ||
function stake(address, uint256) external; | ||
function stakeFor(address, uint256) external; | ||
function withdraw(address, uint256) external; | ||
function exit(address) external; | ||
function getReward(address) external; | ||
function queueNewRewards(uint256) external; | ||
function notifyRewardAmount(uint256) external; | ||
function addExtraReward(address) external; | ||
function extraRewardsLength() external view returns (uint256); | ||
function stakingToken() external view returns (address); | ||
function rewardToken() external view returns (address); | ||
function earned(address account) external view returns (uint256); | ||
} |
Oops, something went wrong.