diff --git a/packages/contracts/test/dollar/monitors/PoolLiquidityMonitorTest.t.sol b/packages/contracts/test/dollar/monitors/PoolLiquidityMonitorTest.t.sol new file mode 100644 index 000000000..33196781c --- /dev/null +++ b/packages/contracts/test/dollar/monitors/PoolLiquidityMonitorTest.t.sol @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import "forge-std/Test.sol"; +import "../../../src/dollar/monitors/PoolLiquidityMonitor.sol"; +import "../../helpers/LocalTestHelper.sol"; + +contract PoolLiquidityMonitorTest is LocalTestHelper { + PoolLiquidityMonitor monitor; + address defenderRelayer = address(0x456); + + function setUp() public override { + super.setUp(); + + monitor = new PoolLiquidityMonitor( + address(ubiquityPoolFacet), + defenderRelayer + ); + } + + function testInitialSetup() public { + assertEq(monitor.defenderRelayer(), defenderRelayer); + } + + function testSetDefenderRelayer() public { + address newRelayer = address(0x789); + + monitor.setDefenderRelayer(newRelayer); + + assertEq(monitor.defenderRelayer(), newRelayer); + } +}