xWin BuddyChef (Legacy)

xWinBuddyChef

UserInfo

struct UserInfo {
  uint256 amount;
  uint256 rewardDebt;
}

PoolInfo

struct PoolInfo {
  contract IERC20Upgradeable lpToken;
  contract IERC20Upgradeable rewardToken;
  uint256 endPeriod;
  uint256 lastRewardBlock;
  uint256 accCakePerShare;
  uint256 tokenPerBlock;
  uint256 totalStaked;
  uint256 totalBuddyTokens;
}

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

usdtToken

address usdtToken

devAddress

address devAddress

poolInfo

struct xWinBuddyChef.PoolInfo[] poolInfo

devFee

uint256 devFee

startBlock

uint256 startBlock

BONUS_MULTIPLIER

uint256 BONUS_MULTIPLIER

blocksPerDay

uint256 blocksPerDay

userInfo

mapping(uint256 => mapping(address => struct xWinBuddyChef.UserInfo)) userInfo

mapping of a nft token to its current properties

Deposit

event Deposit(address user, uint256 pid, uint256 amount)

Withdraw

event Withdraw(address user, uint256 pid, uint256 amount)

EmergencyWithdraw

event EmergencyWithdraw(address user, uint256 pid, uint256 amount)

Received

event Received(address, uint256)

initialize

function initialize(address _devAddress, address _xWinPriceMaster, address _usdtToken, uint256 _blocksPerDay) public

poolLength

function poolLength() external view returns (uint256)

stopPool

function stopPool(uint256 _pid) public

updateDevAddress

function updateDevAddress(address _devAdd) public

_stopPool

function _stopPool(uint256 _pid) internal

add

function add(contract IERC20Upgradeable _lpToken, contract IERC20Upgradeable _rewardToken, uint256 _duration, uint256 _totalBuddyTokens) public

set

function set(uint256 _pid, uint256 _newDuration, uint256 _totalBuddyTokens, uint256 _amountToAdd) public

pendingRewards

function pendingRewards(uint256 _pid, address _user) public view returns (uint256)

getMultiplier

function getMultiplier(uint256 _from, uint256 _to, uint256 _endBlock) public view returns (uint256)

massUpdatePools

function massUpdatePools() public

updatePool

function updatePool(uint256 _pid) public

harvestAll

function harvestAll() public

deposit

function deposit(uint256 _pid, uint256 _amount) public

_deposit

function _deposit(uint256 _pid, uint256 _amount) internal

withdraw

function withdraw(uint256 _pid, uint256 _amount) public

safeTokenTransfer

function safeTokenTransfer(contract IERC20Upgradeable rewardToken, address _to, uint256 _amount) internal

emergencyWithdraw

function emergencyWithdraw(uint256 _pid) public

setPriceMaster

function setPriceMaster(address _newPriceMaster) external

setUSDToken

function setUSDToken(address _newUSDAddr) external

setDevFee

function setDevFee(uint256 _newDevFee) external

setBonusMultiplier

function setBonusMultiplier(uint256 _newMultiplier) external

setBlocksPerDay

function setBlocksPerDay(uint256 _newBlocksPerDay) external

Last updated