-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from revo-market/jophish/multi-reward
feat(multi-rewards): Add support for multi-reward Ubeswap farms
- Loading branch information
Showing
2 changed files
with
117 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.4.24; | ||
|
||
interface IMoolaStakingRewards { | ||
|
||
// Views | ||
|
||
function lastTimeRewardApplicable() external view returns (uint256); | ||
|
||
function rewardPerToken() external view returns (uint256); | ||
|
||
function earned(address account) external view returns (uint256); | ||
|
||
function earnedExternal(address account) external returns (uint256[] calldata); | ||
|
||
function getRewardForDuration() external view returns (uint256); | ||
|
||
function totalSupply() external view returns (uint256); | ||
|
||
function balanceOf(address account) external view returns (uint256); | ||
|
||
// Mutative | ||
|
||
function stake(uint256 amount) external; | ||
|
||
function withdraw(uint256 amount) external; | ||
|
||
function getReward() external; | ||
|
||
function exit() 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