Skip to content

taisys-technologies/audit-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

audit-exchange

The purpose of this contract is to change ETH or other ERC20 token into VegasONE. In order to achieve the goal, there are various settings in the contract, such as exchange rates, switches, etc.

The following are some explanation for the function or user scenario.

Function Description

addERC20Token onlyAdmin

This function is provided for administrators to add an erc20 token that can be exchanged for VegasONE. Also, admins set the exchange rate and decide whether to open the exchange through this function.

erc20ToVegasONE

Convert the selected erc20 token to VEGASONE according to the exchange rate.

erc20Withdraw onlyAdmin

This function is for the administrator to withdraw the selected erc20 token within the contract to whoever he wants.

ethToVegasONE

Convert ETH to VEGASONE according to the exchange rate.

ethWithdraw onlyAdmin

This function is for the administrator to withdraw the ETH within the contract to whoever he wants.

setContractExchangeStatus onlyAdmin

This function is provided for administrators to modify whether the contract is open to exchange VegasONE.

setERC20TokenExchangeRate onlyAdmin

This function is provided for administrators to modify exchange rates for selected erc20 token.

setETHExchangeRate onlyAdmin

This function is provided for administrators to modify exchange rates for ETH.

setExchangeMinValue onlyAdmin

This function is provided for administrators to modify the minimum amount to exchange VegasONE.

setTokenExchangeStatus onlyAdmin

This function is provided for administrators to modify whether the selected erc20 tokens are open to exchange for VegasONE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •