Skip to content

Commit

Permalink
test(pool-monitor): add pool monitor initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandr-masl committed Sep 12, 2024
1 parent 281ca33 commit 32237f5
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 32237f5

Please sign in to comment.