Skip to content

Commit

Permalink
IMinichefV2
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonster-BSC committed May 7, 2021
1 parent 37026f3 commit edefce5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions contracts/interfaces/IMiniChefV2.sol
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
}

0 comments on commit edefce5

Please sign in to comment.