forked from sushi-labs/sushiswap
-
Notifications
You must be signed in to change notification settings - Fork 0
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
37026f3
commit edefce5
Showing
1 changed file
with
25 additions
and
0 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,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.6.12; | ||
pragma experimental ABIEncoderV2; | ||
import "@boringcrypto/boring-solidity/contracts/libraries/BoringERC20.sol"; | ||
|
||
interface IMiniChefV2 { | ||
struct UserInfo { | ||
uint256 amount; | ||
uint256 rewardDebt; | ||
} | ||
|
||
struct PoolInfo { | ||
uint128 accSushiPerShare; | ||
uint64 lastRewardTime; | ||
uint64 allocPoint; | ||
} | ||
|
||
function poolLength() external view returns (uint256) | ||
function updatePool(uint256 pid) external returns (IMiniChefV2.PoolInfo memory) | ||
function deposit(uint256 pid, uint256 amount, address to) external | ||
function withdraw(uint256 pid, uint256 amount, address to) external | ||
function harvest(uint256 pid, address to) external | ||
function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external | ||
function emergencyWithdraw(uint256 pid, address to) external | ||
} |