@@ -108,7 +108,6 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
108108 uint256 private constant ALPHA_DIVISOR = 1e4 ; // The number to divide `Court.alpha` by.
109109 uint256 private constant NON_PAYABLE_AMOUNT = (2 ** 256 - 2 ) / 2 ; // An amount higher than the supply of ETH.
110110 uint256 private constant SEARCH_ITERATIONS = 10 ; // Number of iterations to search for suitable parent court before jumping to the top court.
111- IERC20 private constant NATIVE_CURRENCY = IERC20 (address (0 )); // The native currency, such as ETH on Arbitrum, Optimism and Ethereum L1.
112111
113112 address public governor; // The governor of the contract.
114113 IERC20 public pinakion; // The Pinakion token contract.
@@ -516,7 +515,7 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
516515 ) external payable override returns (uint256 disputeID ) {
517516 if (msg .value < arbitrationCost (_extraData)) revert ArbitrationFeesNotEnough ();
518517
519- return _createDispute (_numberOfChoices, _extraData, NATIVE_CURRENCY, msg .value );
518+ return _createDispute (_numberOfChoices, _extraData, Constants. NATIVE_CURRENCY, msg .value );
520519 }
521520
522521 /// @inheritdoc IArbitratorV2
@@ -553,7 +552,7 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
553552 Round storage round = dispute.rounds.push ();
554553
555554 // Obtain the feeForJuror in the same currency as the _feeAmount
556- uint256 feeForJuror = (_feeToken == NATIVE_CURRENCY)
555+ uint256 feeForJuror = (_feeToken == Constants. NATIVE_CURRENCY)
557556 ? court.feeForJuror
558557 : convertEthToTokenAmount (_feeToken, court.feeForJuror);
559558 round.nbVotes = _feeAmount / feeForJuror;
@@ -810,7 +809,7 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
810809 }
811810 if (_params.repartition == _params.numberOfVotesInRound - 1 && _params.coherentCount == 0 ) {
812811 // No one was coherent, send the rewards to the governor.
813- if (round.feeToken == NATIVE_CURRENCY) {
812+ if (round.feeToken == Constants. NATIVE_CURRENCY) {
814813 // The dispute fees were paid in ETH
815814 payable (governor).send (round.totalFeesForJurors);
816815 } else {
@@ -865,7 +864,7 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
865864 uint256 feeReward = ((round.totalFeesForJurors / _params.coherentCount) * degreeOfCoherence) / ALPHA_DIVISOR;
866865 round.sumFeeRewardPaid += feeReward;
867866 pinakion.safeTransfer (account, pnkReward);
868- if (round.feeToken == NATIVE_CURRENCY) {
867+ if (round.feeToken == Constants. NATIVE_CURRENCY) {
869868 // The dispute fees were paid in ETH
870869 payable (account).send (feeReward);
871870 } else {
@@ -891,7 +890,7 @@ contract KlerosCore is IArbitratorV2, UUPSProxiable, Initializable {
891890 pinakion.safeTransfer (governor, leftoverPnkReward);
892891 }
893892 if (leftoverFeeReward != 0 ) {
894- if (round.feeToken == NATIVE_CURRENCY) {
893+ if (round.feeToken == Constants. NATIVE_CURRENCY) {
895894 // The dispute fees were paid in ETH
896895 payable (governor).send (leftoverFeeReward);
897896 } else {
0 commit comments