Lewati ke konten utama

CurrencyManager

This contract manages the list of valid fungible currencies.

isCurrencyAllowed

mapping(address => bool) isCurrencyAllowed

It checks whether the currency is allowed for transacting.

constructor

constructor(address _owner) public

Constructor

Parameters

NameTypeDescription
_owneraddressOwner address

updateCurrencyStatus

function updateCurrencyStatus(address currency, bool isAllowed) external

This function allows the owner to update the status of a currency.

Only callable by owner.

Parameters

NameTypeDescription
currencyaddressCurrency address (address(0) for ETH)
isAllowedboolWhether the currency should be allowed for trading