Skip to content

Commit

Permalink
fix: proposer's bond should not be released when dispute has no resol…
Browse files Browse the repository at this point in the history
…ution
  • Loading branch information
gas1cent committed Nov 13, 2024
1 parent 506a405 commit c1181ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions solidity/contracts/modules/dispute/BondedDisputeModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ contract BondedDisputeModule is Module, IBondedDisputeModule {
_token: _params.bondToken,
_amount: _params.bondSize
});

_params.accountingExtension.release({
_bonder: _dispute.proposer,
_requestId: _dispute.requestId,
_token: _params.bondToken,
_amount: _params.bondSize
});
} else if (_status == IOracle.DisputeStatus.Won) {
// Disputer won, we pay the disputer and release their bond
_params.accountingExtension.pay({
Expand Down
7 changes: 0 additions & 7 deletions solidity/test/unit/modules/dispute/BondedDisputeModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,6 @@ contract BondedDisputeModule_Unit_OnDisputeStatusChange is BaseTest {
abi.encode(IOracle.DisputeStatus.NoResolution)
);

// Mock and expect the call to release, for the proposer
_mockAndExpect(
address(accountingExtension),
abi.encodeCall(accountingExtension.release, (mockResponse.proposer, _requestId, _token, _bondSize)),
abi.encode()
);

// Mock and expect the call to release, for the disputer
_mockAndExpect(
address(accountingExtension),
Expand Down

0 comments on commit c1181ca

Please sign in to comment.