xWin MasterChef

xWinDefi

UserInfo

struct UserInfo {
  uint256 amount;
  uint256 blockstart;
}

PoolInfo

struct PoolInfo {
  address lpToken;
  uint256 rewardperblock;
  uint256 multiplier;
}

DepositFarm

function DepositFarm(uint256 _pid, uint256 _amount) public

pendingXwin

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

WithdrawFarm

function WithdrawFarm(uint256 _pid, uint256 _amount) public

userInfo

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

poolInfo

struct xWinDefi.PoolInfo[] poolInfo

xWinMasterChef

UserInfo

struct UserInfo {
  uint256 amount;
  uint256 rewardDebt;
}

PoolInfo

struct PoolInfo {
  contract IERC20Upgradeable lpToken;
  uint256 endPeriod;
  uint256 allocPoint;
  uint256 lastRewardBlock;
  uint256 accCakePerShare;
  uint256 totalDeposit;
}

xWinPriceMaster

contract IxWinPriceMaster xWinPriceMaster

rewardsToken

contract IERC20Upgradeable rewardsToken

usdtToken

address usdtToken

burnAddress

address burnAddress

_xwinDefi

contract xWinDefi _xwinDefi

poolInfo

struct xWinMasterChef.PoolInfo[] poolInfo

burnFee

uint256 burnFee

xwinPerBlock

uint256 xwinPerBlock

totalAllocPoint

uint256 totalAllocPoint

startBlock

uint256 startBlock

BONUS_MULTIPLIER

uint256 BONUS_MULTIPLIER

xwinpid

uint256 xwinpid

blocksPerDay

uint256 blocksPerDay

userInfo

mapping(uint256 => mapping(address => struct xWinMasterChef.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(string name, string symbol, address _usdtToken, uint256 _blocksPerDay) external

farmTokenByAdmin

function farmTokenByAdmin() external

unFarmTokenByAdmin

function unFarmTokenByAdmin() external

updateProperties

function updateProperties(contract IERC20Upgradeable _rewardsToken, uint256 _xwinpid, uint256 _xwinPerBlock) public

poolLength

function poolLength() external view returns (uint256)

updateSmartContract

function updateSmartContract(address _xwinDefiaddr, address _xWinPriceMaster) external

stopPool

function stopPool(uint256 _pid) external

_stopPool

function _stopPool(uint256 _pid) internal

add

function add(uint256 _allocPoint, contract IERC20Upgradeable _lpToken, uint256 _duration) external

set

function set(uint256 _pid, uint256 _allocPoint, uint256 _newDuration) external

pendingRewards

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

getMultiplier

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

massUpdatePools

function massUpdatePools() public

updatePool

function updatePool(uint256 _pid) public

harvestAll

function harvestAll() external

deposit

function deposit(uint256 _pid, uint256 _amount) external returns (uint256)

_deposit

function _deposit(uint256 _pid, uint256 _amount) internal returns (uint256 rewardAmount)

withdraw

function withdraw(uint256 _pid, uint256 _amount) external returns (uint256 rewardAmount)

safexWINTransfer

function safexWINTransfer(address _to, uint256 _amount) internal returns (uint256)

harvest

function harvest(uint256 _pid) external returns (uint256)

emergencyWithdraw

function emergencyWithdraw(uint256 _pid) external

setBurnFee

function setBurnFee(uint256 _burnFee) external

setBonusMultiplier

function setBonusMultiplier(uint256 _bonusMultiplier) external

setBlockPerDay

function setBlockPerDay(uint256 _blocksPerDay) external

setUSDToken

function setUSDToken(address _newUSDToken) external

getAPR

function getAPR(uint256 _pid) external view returns (uint256 apr)

Returns the APR for a given pool

getPoolUserRewardPerBlock

function getPoolUserRewardPerBlock(uint256 _pid, address _user) external view returns (uint256)

View the reward per block for a given pool and user

Last updated