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
Name | Type | Description |
---|---|---|
_owner | address | Owner 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
Name | Type | Description |
---|---|---|
currency | address | Currency address (address(0) for ETH) |
isAllowed | bool | Whether the currency should be allowed for trading |