TokenManagerBase

View Source: @nomisma/elektro-protocol-aux/contracts/tokens/manager/TokenManagerBase.sol

↗ Extends: RoleAware, Resolvable ↘ Derived Contracts: ITokenManagerMain, TokenManagerAdmin

TokenManagerBase

Base contract inherited by {TokenManagerAdmin} and {TokenManagerAssets}. Keeps addresses of contracts needed for {TokenManager} functionality

Contract Members

Constants & Variables

Address of the {ElektroRegistryRouter}

address public elektroRegistry;

Address of Ether (ETH). This is used internally to differentiate between ERC20 tokens and ETH. Any fund related operation check token address against this one to verify if the token in the operation is ETH or not. If it is - we need to do a different flow for managing it.

address public ethereumAddress;

Address of the {TokenWrapper}

address internal tokenWrapper;

Address of Wrapped Ethereum (WETH). This is used internally to differentiate between other ERC20 tokens and WETH. Any fund related operation check token address against this one to verify if the token in the operation is WETH or not. If it is - we need to do a different flow for managing it.

address internal weth9Address;

BankRegistrySet

Parameters

Name
Type
Description

bankRegistryAddress

address

ElektroRegistrySet

Parameters

Name
Type
Description

elektroRegistryAddress

address

EthereumAddressSet

Parameters

Name
Type
Description

etherAddress

address

WETH9AddressSet

Parameters

Name
Type
Description

weth9Address

address

TokenWrapperSet

Parameters

Name
Type
Description

tokenWrapperAddress

address

Modifiers

  • onlyAllowedContracts

onlyAllowedContracts

Only contracts that are verified by Registry are allowed

modifier onlyAllowedContracts(address _registry) internal

Arguments

Name
Type
Description

_registry

address

Functions

Last updated

Was this helpful?