Witty DEX Admin
These shows admin functionalities
1. Function Name: unpause
Unpause contract to allow users access functions
Expected Parameter:
-
Return Value
-
2. Function Name: pause
Pause contract to allow users access functions
Expected Parameter
-
Return Value
-
3. Function Name: addPlatformTokenAddress
Add platform token address
Expected Parameter
address platformAddress
Return Value
push the address to the platformToken array
4. Function Name: deletePlatformTokenAtIndex
Delete platform token address
Expected Parameter
address platformAddress
Return Value
Delete the user address from the platformTokenAddress array
5. Function Name: getPlatformTokenAddressesCount
Get platform token address count
Expected Parameter
-
Return Value
Returns the length of platform addresses
6. Function Name: addDailyTradeLimit
Create daily trade limit and maxRef
Expected Parameter
uint maxRef
uint dailyTradeLimit
Return Value
-
7. Function Name: editDailyTradeLimit
Update daily trade limit
Expected Parameter
uint planId
bool isActive
Return Value
-
8. Function Name: editMaxRef
Update max Referral
Expected Parameter
uint index
uint maxRef
Return Value
-
9. Function Name: setAddresses
Set value for all address
Expected Parameter
address arbitrage
address stakingContract
address router
address factory
address wittyToken
Return Value
sets all address
10. Function Name: addSwapTokenAddresses
Add Swap token addresses
Expected Parameter
address _paymentAddress
Return Value
add payment address to the swaptoken array
11. Function Name: deleteSwapTokenAtIndex
Delete swap token at its index
Expected Parameter
uint index
Return Value
-
12. Function Name: getswapTokensCount
Get swap tokens counts
Expected Parameter
-
Return Value
Returns the length off the swap token
13. Function Name: adminBuySellToken
Get swap tokens counts
Expected Parameter
uint amount
uint min_tokens
uint fromTokenIndex
uint toTokenIndex
address ref
Return Value
-
Last updated