From 0afc15a6dac109ada329e12c0d40fec7dcb9f40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Volpe?= Date: Mon, 22 Nov 2021 15:53:28 -0500 Subject: [PATCH] Added getteres to registry ##8998 --- packages/protocol/contracts/common/UsingRegistryV2.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/protocol/contracts/common/UsingRegistryV2.sol b/packages/protocol/contracts/common/UsingRegistryV2.sol index 209d1f4948c..096ec33f511 100644 --- a/packages/protocol/contracts/common/UsingRegistryV2.sol +++ b/packages/protocol/contracts/common/UsingRegistryV2.sol @@ -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)); } @@ -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)); }