Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test replacing PAL by hPAL for Controller rewards + Kovan tests
- Loading branch information
Showing
4 changed files
with
123 additions
and
9 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,56 @@ | ||
pragma solidity ^0.7.6; | ||
pragma abicoder v2; | ||
//SPDX-License-Identifier: MIT | ||
|
||
interface IhPAL { | ||
|
||
struct UserLock { | ||
uint128 amount; | ||
uint48 startTimestamp; | ||
uint48 duration; | ||
uint32 fromBlock; | ||
} | ||
|
||
// solhint-disable-next-line | ||
function MIN_LOCK_DURATION() external view returns(uint256); | ||
// solhint-disable-next-line | ||
function MAX_LOCK_DURATION() external view returns(uint256); | ||
|
||
function getUserLock(address user) external view returns(UserLock memory); | ||
|
||
function getUserLockCount(address user) external view returns(uint256); | ||
|
||
function getUserPastLock(address user, uint256 blockNumber) external view returns(UserLock memory); | ||
|
||
function estimateClaimableRewards(address user) external view returns(uint256); | ||
|
||
|
||
function stake(uint256 amount) external returns(uint256); | ||
|
||
function cooldown() external; | ||
|
||
function unstake(uint256 amount, address receiver) external returns(uint256); | ||
|
||
function lock(uint256 amount, uint256 duration) external; | ||
|
||
function increaseLockDuration(uint256 duration) external; | ||
|
||
function increaseLock(uint256 amount) external; | ||
|
||
function unlock() external; | ||
|
||
function kick(address user) external; | ||
|
||
function stakeAndLock(uint256 amount, uint256 duration) external returns(uint256); | ||
|
||
function stakeAndIncreaseLock(uint256 amount, uint256 duration) external returns(uint256); | ||
|
||
function delegate(address delegatee) external; | ||
|
||
function claim(uint256 amount) external; | ||
|
||
function updateRewardState() external; | ||
|
||
function updateUserRewardState(address user) 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
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