@0x/contracts-zero-ex
: Remove mooniswapRegistry
from BridgeAdapter
addreses
This commit is contained in:
parent
ab28e42c22
commit
3733d503db
@ -37,7 +37,6 @@ contract MixinAdapterAddresses
|
||||
address uniswapV2Router;
|
||||
address uniswapExchangeFactory;
|
||||
address mStable;
|
||||
address mooniswapRegistry;
|
||||
// Other
|
||||
address weth;
|
||||
}
|
||||
|
@ -41,18 +41,6 @@ interface IMooniswapPool {
|
||||
returns (uint256 boughtAmount);
|
||||
}
|
||||
|
||||
/// @dev Moooniswap registry interface.
|
||||
interface IMooniswapRegistry {
|
||||
|
||||
function pools(
|
||||
IERC20TokenV06 token1,
|
||||
IERC20TokenV06 token2
|
||||
)
|
||||
external
|
||||
view
|
||||
returns (IMooniswapPool);
|
||||
}
|
||||
|
||||
/// @dev BridgeAdapter mixin for mooniswap.
|
||||
contract MixinMooniswap is
|
||||
MixinAdapterAddresses
|
||||
@ -60,15 +48,12 @@ contract MixinMooniswap is
|
||||
using LibERC20TokenV06 for IERC20TokenV06;
|
||||
using LibERC20TokenV06 for IEtherTokenV06;
|
||||
|
||||
/// @dev Mooniswap registry contract.
|
||||
IMooniswapRegistry private immutable REGISTRY;
|
||||
/// @dev WETH token.
|
||||
IEtherTokenV06 private immutable WETH;
|
||||
|
||||
constructor(AdapterAddresses memory addresses)
|
||||
public
|
||||
{
|
||||
REGISTRY = IMooniswapRegistry(addresses.mooniswapRegistry);
|
||||
WETH = IEtherTokenV06(addresses.weth);
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,6 @@ blockchainTests.resets('FillQuoteTransformer', env => {
|
||||
uniswapV2Router: NULL_ADDRESS,
|
||||
uniswapExchangeFactory: NULL_ADDRESS,
|
||||
mStable: NULL_ADDRESS,
|
||||
mooniswapRegistry: NULL_ADDRESS,
|
||||
weth: NULL_ADDRESS,
|
||||
},
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user