PermissionGroups
function
removeOperator
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| operator | address |
Outputs
(void)
function
addOperator
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newOperator | address |
Outputs
(void)
function
transferAdminQuickly
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAdmin | address |
Outputs
(void)
function
transferAdmin
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAdmin | address |
Outputs
(void)
function
addAlerter
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAlerter | address |
Outputs
(void)
function
removeAlerter
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| alerter | address |
Outputs
(void)
function
claimAdmin
nonpayable
Inputs
(void)
Outputs
(void)
function
getAlerters
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
function
getOperators
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
event
OperatorAdded
Inputs
| Parameter | Type | Description |
|---|---|---|
| newOperator | address | |
| isAdd | bool |
Outputs
(void)
event
AlerterAdded
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAlerter | address | |
| isAdd | bool |
Outputs
(void)
event
AdminClaimed
Inputs
| Parameter | Type | Description |
|---|---|---|
| newAdmin | address | |
| previousAdmin | address |
Outputs
(void)
event
TransferAdminPending
Inputs
| Parameter | Type | Description |
|---|---|---|
| pendingAdmin | address |
Outputs
(void)
WhiteList
function
setSgdToEthRate
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _sgdToWeiRate | uint256 |
Outputs
(void)
function
setCategoryCap
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| category | uint256 | |
| sgdCap | uint256 |
Outputs
(void)
function
setUserCategory
nonpayable
Restricted (onlyOperator)
Inputs
| Parameter | Type | Description |
|---|---|---|
| user | address | |
| category | uint256 |
Outputs
(void)
function
getUserCategory
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| user | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
getUserCapInWei
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| user | address |
Outputs
| Type | Description |
|---|---|
| uint256 |
constructor
WhiteList
nonpayable
Inputs
| Parameter | Type | Description |
|---|---|---|
| _admin | address | |
| _kgtToken | address |
Outputs
(void)
event
SgdToWeiRateSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| rate | uint256 |
Outputs
(void)
event
CategoryCapSet
Inputs
| Parameter | Type | Description |
|---|---|---|
| category | uint256 | |
| sgdCap | uint256 |
Outputs
(void)
event
UserCategorySet
Inputs
| Parameter | Type | Description |
|---|---|---|
| user | address | |
| category | uint256 |
Outputs
(void)
Withdrawable
function
withdrawEther
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| amount | uint256 | |
| sendTo | address |
Outputs
(void)
function
withdrawToken
nonpayable
Restricted (onlyAdmin)
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 | |
| sendTo | address |
Outputs
(void)
event
EtherWithdraw
Inputs
| Parameter | Type | Description |
|---|---|---|
| amount | uint256 | |
| sendTo | address |
Outputs
(void)
event
TokenWithdraw
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| amount | uint256 | |
| sendTo | address |
Outputs
(void)
function
categoryCap
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
admin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
weiPerSgd
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
userCategory
view
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
kgtHolderCategory
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint256 |
function
pendingAdmin
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
kgtToken
view
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |