Skip to content

Commit

Permalink
Added getteres to registry ##8998
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvol committed Nov 22, 2021
1 parent 92441e3 commit 0afc15a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/protocol/contracts/common/UsingRegistryV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ contract UsingRegistryV2 {
return IExchange(registry.getAddressForOrDie(EXCHANGE_EURO_REGISTRY_ID));
}

function getExchangeREAL() internal view returns (IExchange) {
return IExchange(registry.getAddressForOrDie(EXCHANGE_REAL_REGISTRY_ID));
}

function getFeeCurrencyWhitelistRegistry() internal view returns (IFeeCurrencyWhitelist) {
return IFeeCurrencyWhitelist(registry.getAddressForOrDie(FEE_CURRENCY_WHITELIST_REGISTRY_ID));
}
Expand Down Expand Up @@ -134,6 +138,10 @@ contract UsingRegistryV2 {
return IStableToken(registry.getAddressForOrDie(STABLE_EURO_TOKEN_REGISTRY_ID));
}

function getStableRealToken() internal view returns (IStableToken) {
return IStableToken(registry.getAddressForOrDie(STABLE_REAL_TOKEN_REGISTRY_ID));
}

function getValidators() internal view returns (IValidators) {
return IValidators(registry.getAddressForOrDie(VALIDATORS_REGISTRY_ID));
}
Expand Down

0 comments on commit 0afc15a

Please sign in to comment.