Skip to content

Commit

Permalink
fix: unlock without pledge
Browse files Browse the repository at this point in the history
  • Loading branch information
ashitakah committed Jul 9, 2024
1 parent 8a5f3f3 commit 358b2ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ contract BondEscalationModule is Module, IBondEscalationModule {
uint256 _pledgesForDispute = _escalation.amountOfPledgesForDispute;
uint256 _pledgesAgainstDispute = _escalation.amountOfPledgesAgainstDispute;

if (_pledgesAgainstDispute > 0) {
if (_pledgesAgainstDispute > 0 || _pledgesForDispute > 0) {
uint256 _amountToPay = _won
? _params.bondSize
+ FixedPointMathLib.mulDivDown(_pledgesAgainstDispute, _params.bondSize, _pledgesForDispute)
Expand Down

0 comments on commit 358b2ff

Please sign in to comment.