MarketRegistry
Register uToken and UserManager contracts to their tokens
userManagers
Token address mapped to userManager
Assumption there will only ever be one UserManager per token
uTokens
Token address mapped to uToken
Assumption there will only ever be one UToken per token
LogAddUToken
New UToken contract registered
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | The address of the underlying token |
contractAddress | address | The contract address |
LogAddUserManager
New UserManager contract registered
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | The address of the underlying token |
contractAddress | address | The contract address |
__MarketRegistry_init
@dev Initialization function
hasUToken
hasUserManager
setUToken
Register a new UToken contract
Parameters
Name | Type | Description |
---|---|---|
token | address | The underlying token e.g DAI |
uToken | address | the address of the uToken contract |
setUserManager
Register a new UToken contract
Parameters
Name | Type | Description |
---|---|---|
token | address | The underlying token e.g DAI |
userManager | address | the address of the UserManager contract |
Last updated