Skip to content

Commit

Permalink
Merge pull request #51 from kleros/fix/small-fixes
Browse files Browse the repository at this point in the history
feat(ForeignProxyAppeals): store dispute block
  • Loading branch information
unknownunknown1 authored Nov 4, 2024
2 parents a685ebe + afd00ae commit 94905de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy,
mapping(uint256 => DisputeDetails) public disputeIDToDisputeDetails; // Maps external dispute ids to local arbitration ID and requester who was able to complete the arbitration request.
mapping(uint256 => bool) public arbitrationIDToDisputeExists; // Whether a dispute has already been created for the given arbitration ID or not.
mapping(uint256 => address) public arbitrationIDToRequester; // Maps arbitration ID to the requester who was able to complete the arbitration request.
mapping(uint256 => uint256) public arbitrationCreatedBlock; // Block of dispute creation. arbitrationCreatedBlock[disputeID]

/* Modifiers */

Expand Down Expand Up @@ -182,6 +183,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy,

arbitrationIDToDisputeExists[arbitrationID] = true;
arbitrationIDToRequester[arbitrationID] = _requester;
arbitrationCreatedBlock[disputeID] = block.number;

// At this point, arbitration.deposit is guaranteed to be greater than or equal to the arbitration cost.
uint256 remainder = arbitration.deposit - arbitrationCost;
Expand Down

0 comments on commit 94905de

Please sign in to comment.