👉Pool Factory V2
Functions:
Events:
Function initialize()
initialize()Function createPool(uint256 _game, uint256 _gameMode, uint256 _currentPrize, uint256 _entryFee, uint256 _startOn, uint256 _finishOn, uint256 _firstFee, uint256 _secondFee, uint256 _thirdFee, address _tokenAddr) → uint256
createPool(uint256 _game, uint256 _gameMode, uint256 _currentPrize, uint256 _entryFee, uint256 _startOn, uint256 _finishOn, uint256 _firstFee, uint256 _secondFee, uint256 _thirdFee, address _tokenAddr) → uint256Parameters:
Return Values:
Function joinPool(uint256 _poolId)
joinPool(uint256 _poolId)Function leavePool(uint256 _poolId)
leavePool(uint256 _poolId)Function viewPools(address _addr) → uint256[] _userPools
viewPools(address _addr) → uint256[] _userPoolsParameters:
Function viewPoolPlayers(uint256 _poolId) → address payable[] _users
viewPoolPlayers(uint256 _poolId) → address payable[] _usersParameters:
Return Values:
Function viewActivePools() → uint256[] _activePools
viewActivePools() → uint256[] _activePoolsReturn Values:
Function getTreasury() → address _treasury
getTreasury() → address _treasuryFunction finishPool(uint256 _poolId, address payable _winner1, address payable _winner2, address payable _winner3)
finishPool(uint256 _poolId, address payable _winner1, address payable _winner2, address payable _winner3)Parameters:
Function cancelPool(uint256 _poolId)
cancelPool(uint256 _poolId)Parameters:
Function updateFee(uint256 _newFee)
updateFee(uint256 _newFee)Parameters:
Event NewPool(uint256 poolId, uint256 _game, uint256 _gameMode, uint256 _currentPrize, uint256 _entryFee, uint256 _startOn, uint256 _finishOn, uint256 _firstFee, uint256 _secondFee, uint256 _thirdFee, address _tokenAddr)
NewPool(uint256 poolId, uint256 _game, uint256 _gameMode, uint256 _currentPrize, uint256 _entryFee, uint256 _startOn, uint256 _finishOn, uint256 _firstFee, uint256 _secondFee, uint256 _thirdFee, address _tokenAddr)Parameters:
Event CancelPool(uint256 _poolId)
CancelPool(uint256 _poolId)Parameters:
Event PoolLeftBy(uint256 _poolId, address _player)
PoolLeftBy(uint256 _poolId, address _player)Parameters:
Event PoolJoinedBy(uint256 _poolId, address _player)
PoolJoinedBy(uint256 _poolId, address _player)Parameters:
Event PoolFinished(uint256 _poolId, address _winner)
PoolFinished(uint256 _poolId, address _winner)Parameters:
Last updated