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