MCHLandPool
function
setAllowedAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_address | address | |
desired | bool |
Outputs
(void)
function
setLandSectorAssetAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_landSectorAssetAddress | address |
Outputs
(void)
function
withdrawMyAllRewards
nonpayable
Restricted (whenNotPaused, nonReentrant)
Inputs
(void)
Outputs
(void)
function
withdrawMyReward
nonpayable
Restricted (whenNotPaused, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
_landSector | uint256 |
Outputs
(void)
function
addEthToLandPool
payable
Restricted (whenNotPaused, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
_landType | uint16 | |
_purchaseBy | address |
Outputs
(void)
function
getTotalEthBackAmountPerLandType
view
Inputs
Parameter | Type | Description |
---|---|---|
_landType | uint16 |
Outputs
Type | Description |
---|---|
uint256 |
function
getAllowedAddress
view
Inputs
Parameter | Type | Description |
---|---|---|
_address | address |
Outputs
Type | Description |
---|---|
bool |
function
getLandSectorWithdrawnAmount
view
Inputs
Parameter | Type | Description |
---|---|---|
_landSector | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
getWithdrawableBalance
view
Inputs
Parameter | Type | Description |
---|---|---|
_lordAddress | address |
Outputs
Type | Description |
---|---|
uint256 |
function
getLandSectorWithdrawableBalance
view
Inputs
Parameter | Type | Description |
---|---|---|
_landSector | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
event
AllowedAddressSet
Inputs
Parameter | Type | Description |
---|---|---|
allowedAddress | address | |
allowedStatus | bool |
Outputs
(void)
event
WithdrawEther
Inputs
Parameter | Type | Description |
---|---|---|
landSector | uint256 | |
lord | address | |
value | uint256 | |
at | uint256 |
Outputs
(void)
event
EthAddedToPool
Inputs
Parameter | Type | Description |
---|---|---|
landType | uint16 | |
txSender | address | |
purchaseBy | address | |
value | uint256 | |
at | uint256 |
Outputs
(void)
Ownable
function
transferOwnership
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
newOwner | address |
Outputs
(void)
function
renounceOwnership
nonpayable
Restricted (onlyOwner)
Inputs
(void)
Outputs
(void)
function
isOwner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
owner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
event
OwnershipTransferred
Inputs
Parameter | Type | Description |
---|---|---|
previousOwner | address | |
newOwner | address |
Outputs
(void)
Pausable
function
pause
nonpayable
Restricted (onlyPauser, whenNotPaused)
Inputs
(void)
Outputs
(void)
function
unpause
nonpayable
Restricted (onlyPauser, whenPaused)
Inputs
(void)
Outputs
(void)
function
paused
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
event
Unpaused
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
event
Paused
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
PauserRole
function
addPauser
nonpayable
Restricted (onlyPauser)
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
function
renouncePauser
nonpayable
Inputs
(void)
Outputs
(void)
function
isPauser
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
bool |
event
PauserRemoved
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
event
PauserAdded
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
ReentrancyGuard
constructor
MCHLandPool
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_landSectorAssetAddress | address |
Outputs
(void)
function
landSectorAsset
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |