Skip to content

Commit

Permalink
Merge pull request #237 from morpho-labs/test/fix-failing-test-borrow…
Browse files Browse the repository at this point in the history
…er-address

test: prevent receiver = BORROWER
  • Loading branch information
MerlinEgalite authored Aug 8, 2023
2 parents 7a7b0f3 + 3e965f2 commit 664c9bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/forge/Blue.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ contract BlueTest is
using stdStorage for StdStorage;
using FixedPointMathLib for uint256;

address private constant BORROWER = address(1234);
address private constant LIQUIDATOR = address(5678);
address private constant BORROWER = address(0x1234);
address private constant LIQUIDATOR = address(0x5678);
uint256 private constant LLTV = 0.8 ether;
address private constant OWNER = address(0xdead);

Expand Down Expand Up @@ -368,6 +368,7 @@ contract BlueTest is
function testWithdrawShares(uint256 amountLent, uint256 sharesWithdrawn, uint256 amountBorrowed, address receiver)
public
{
vm.assume(receiver != BORROWER);
vm.assume(receiver != address(0));
vm.assume(receiver != address(blue));
vm.assume(receiver != address(this));
Expand Down

0 comments on commit 664c9bc

Please sign in to comment.