From e844351849454a7cf473a6bbdcc3f7dea263c339 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Sat, 23 Nov 2024 13:16:48 +0800 Subject: [PATCH] test: add write attribute to work with new amm-core --- test/__fixtures/BaseTest.t.sol | 1 + test/unit/ReservoirPriceOracle.t.sol | 1 + 2 files changed, 2 insertions(+) diff --git a/test/__fixtures/BaseTest.t.sol b/test/__fixtures/BaseTest.t.sol index 79fb3e6..c3ca5ad 100644 --- a/test/__fixtures/BaseTest.t.sol +++ b/test/__fixtures/BaseTest.t.sol @@ -48,6 +48,7 @@ contract BaseTest is Test { _factory.write("Shared::recoverer", address(this)); _factory.write("Shared::maxChangeRate", Constants.DEFAULT_MAX_CHANGE_RATE); _factory.write("Shared::oracleCaller", address(_oracle)); + _factory.write("Shared::maxChangePerTrade", Constants.DEFAULT_MAX_CHANGE_PER_TRADE); _pair = ReservoirPair(_createPair(address(_tokenA), address(_tokenB), 0)); _tokenA.mint(address(_pair), 103e6); diff --git a/test/unit/ReservoirPriceOracle.t.sol b/test/unit/ReservoirPriceOracle.t.sol index 0ab90b9..e636e5d 100644 --- a/test/unit/ReservoirPriceOracle.t.sol +++ b/test/unit/ReservoirPriceOracle.t.sol @@ -77,6 +77,7 @@ contract ReservoirPriceOracleTest is BaseTest { _addressSet.add(address(_oracle)); _addressSet.add(address(_pair)); _addressSet.add(address(this)); + _addressSet.add(address(VM_ADDRESS)); } // solhint-disable-next-line no-empty-blocks