Skip to content

Commit

Permalink
Check qoutes length in charge funding rate
Browse files Browse the repository at this point in the history
  • Loading branch information
hookman2 committed Sep 20, 2023
1 parent ad242c5 commit 80eb930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/facets/PartyB/PartyBFacetImpl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ library PartyBFacetImpl {
PairUpnlSig memory upnlSig
) internal {
LibMuon.verifyPairUpnl(upnlSig, msg.sender, partyA);
require(quoteIds.length == rates.length, "PartyBFacet: Length not match");
require(quoteIds.length == rates.length && quoteIds.length > 0, "PartyBFacet: Length not match");
int256 partyBAvailableBalance = LibAccount.partyBAvailableBalanceForLiquidation(
upnlSig.upnlPartyB,
msg.sender,
Expand Down

0 comments on commit 80eb930

Please sign in to comment.