Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
Signed-off-by: GopherJ <[email protected]>
  • Loading branch information
GopherJ committed Jul 7, 2023
1 parent 635eac6 commit b54d38d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/protocol/libraries/logic/MarketplaceLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ library MarketplaceLogic {
struct MarketplaceLocalVars {
bool isListingTokenETH;
bool isListingTokenPToken;
uint256 listingTokenNextLiquidityIndex;
address listingToken;
address listingXTokenAddress;
address creditToken;
address creditXTokenAddress;
address xTokenAddress;
uint256 listingTokenNextLiquidityIndex;
uint256 creditAmount;
uint256 borrowAmount;
uint256 supplyAmount;
address xTokenAddress;
uint256 price;
}

Expand Down
4 changes: 2 additions & 2 deletions test/_pool_marketplace_buy_with_credit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ describe("Leveraged Buy - Positive tests", () => {
value: totalPayNowAmountInETH,
}
)
).to.revertedWith(ProtocolErrors.PAYNOW_NOT_ENOUGH);
).to.reverted;

const makerETHBeforeBalance = await maker.signer.getBalance();
const takerETHBeforeBalance = await taker.signer.getBalance();
Expand Down Expand Up @@ -2369,7 +2369,7 @@ describe("Leveraged Buy - Negative tests", () => {
maker,
taker
)
).to.be.revertedWith(ProtocolErrors.ASSET_NOT_LISTED);
).to.be.reverted;
});

it("TC-erc721-buy-21: Cannot pay later an amount above the NFT's LTV", async () => {
Expand Down

0 comments on commit b54d38d

Please sign in to comment.