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) publicpendingXwin
function pendingXwin(uint256 _pid, address _user) public view returns (uint256)WithdrawFarm
function WithdrawFarm(uint256 _pid, uint256 _amount) publicuserInfo
mapping(uint256 => mapping(address => struct xWinDefi.UserInfo)) userInfopoolInfo
struct xWinDefi.PoolInfo[] poolInfoxWinMasterChef
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 xWinPriceMasterrewardsToken
contract IERC20Upgradeable rewardsTokenusdtToken
address usdtTokenburnAddress
address burnAddress_xwinDefi
contract xWinDefi _xwinDefipoolInfo
struct xWinMasterChef.PoolInfo[] poolInfoburnFee
uint256 burnFeexwinPerBlock
uint256 xwinPerBlocktotalAllocPoint
uint256 totalAllocPointstartBlock
uint256 startBlockBONUS_MULTIPLIER
uint256 BONUS_MULTIPLIERxwinpid
uint256 xwinpidblocksPerDay
uint256 blocksPerDayuserInfo
mapping(uint256 => mapping(address => struct xWinMasterChef.UserInfo)) userInfomapping 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) externalfarmTokenByAdmin
function farmTokenByAdmin() externalunFarmTokenByAdmin
function unFarmTokenByAdmin() externalupdateProperties
function updateProperties(contract IERC20Upgradeable _rewardsToken, uint256 _xwinpid, uint256 _xwinPerBlock) publicpoolLength
function poolLength() external view returns (uint256)updateSmartContract
function updateSmartContract(address _xwinDefiaddr, address _xWinPriceMaster) externalstopPool
function stopPool(uint256 _pid) external_stopPool
function _stopPool(uint256 _pid) internaladd
function add(uint256 _allocPoint, contract IERC20Upgradeable _lpToken, uint256 _duration) externalset
function set(uint256 _pid, uint256 _allocPoint, uint256 _newDuration) externalpendingRewards
function pendingRewards(uint256 _pid, address _user) public view returns (uint256)getMultiplier
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256)massUpdatePools
function massUpdatePools() publicupdatePool
function updatePool(uint256 _pid) publicharvestAll
function harvestAll() externaldeposit
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) externalsetBurnFee
function setBurnFee(uint256 _burnFee) externalsetBonusMultiplier
function setBonusMultiplier(uint256 _bonusMultiplier) externalsetBlockPerDay
function setBlockPerDay(uint256 _blocksPerDay) externalsetUSDToken
function setUSDToken(address _newUSDToken) externalgetAPR
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