Skip to content

Commit

Permalink
fix: misc todos (#63)
Browse files Browse the repository at this point in the history
# 🤖 Linear

Closes GRT-XXX
  • Loading branch information
0xShaito authored Nov 27, 2024
1 parent 408c3af commit 2db351c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion script/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ address constant _ARBITRUM_MAINNET_COUNCIL = address(0x101);
address constant _ARBITRUM_SEPOLIA_GRAPH_TOKEN = 0x1A1af8B44fD59dd2bbEb456D1b7604c7bd340702;
address constant _ARBITRUM_SEPOLIA_HORIZON_STAKING = 0x3F53F9f9a5d7F36dCC869f8D2F227499c411c0cf;
address constant _ARBITRUM_SEPOLIA_EPOCH_MANAGER = 0x7975475801BEf845f10Ce7784DC69aB1e0344f11;
address constant _ARBITRUM_SEPOLIA_GOVERNOR = 0xadE6B8EB69a49B56929C1d4F4b428d791861dB6f;
address constant _ARBITRUM_SEPOLIA_ARBITRATOR = address(0x100);
address constant _ARBITRUM_SEPOLIA_COUNCIL = address(0x101);

Expand Down
3 changes: 0 additions & 3 deletions src/contracts/HorizonAccountingExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ contract HorizonAccountingExtension is Validator, IHorizonAccountingExtension {

// Check the balance in the contract
// If not enough balance, slash some users to get enough balance
// TODO: How many iterations should we do?
while (disputeBalance[_disputeId] < _rewardAmount) {
_slash(_disputeId, MAX_USERS_TO_SLASH, maxUsersToCheck, _result, _status);
}
Expand Down Expand Up @@ -407,8 +406,6 @@ contract HorizonAccountingExtension is Validator, IHorizonAccountingExtension {
if (_slashAmount > 0) {
// Slash the user
HORIZON_STAKING.slash(_user, _slashAmount, _slashAmount, address(this));
// TODO: What if `MIN_THAWING_PERIOD` has passed, all provision tokens have been thawed
// and slashing is skipped or reverts (bricking `claimEscalationReward()`)?

_unbond(_user, _slashAmount);

Expand Down
8 changes: 0 additions & 8 deletions test/integration/arbitrum/IntegrationBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ pragma solidity 0.8.26;
import {IAccessController} from '@defi-wonderland/prophet-core/solidity/interfaces/access/IAccessController.sol';

Check warning on line 4 in test/integration/arbitrum/IntegrationBase.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Variable "IAccessController" is unused
import {ValidatorLib} from '@defi-wonderland/prophet-core/solidity/libraries/ValidatorLib.sol';

import {_ARBITRUM_SEPOLIA_GOVERNOR} from 'script/Constants.sol';

import 'forge-std/Test.sol';
import 'script/Deploy.s.sol';

Expand All @@ -19,9 +17,6 @@ contract IntegrationBase is Deploy, Test, Helpers {
uint256 internal constant _ARBITRUM_MAINNET_FORK_BLOCK = 240_000_000;
uint256 internal constant _ARBITRUM_SEPOLIA_FORK_BLOCK = 83_750_000;

// The Graph
address internal _governor; // TODO: Remove if unused

// Users
address internal _requester;
address internal _proposer;
Expand All @@ -45,9 +40,6 @@ contract IntegrationBase is Deploy, Test, Helpers {
super.setUp();
run();

// Define The Graph accounts
_governor = _ARBITRUM_SEPOLIA_GOVERNOR;

// Set user accounts
_requester = makeAddr('requester');
_proposer = makeAddr('proposer');
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1684,9 +1684,9 @@ [email protected]:
optionalDependencies:
prettier "^2.8.3"

"solmate@git+https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c":
"solmate@https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c":
version "6.1.0"
resolved "git+https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"
resolved "https://github.com/transmissions11/solmate.git#bfc9c25865a274a7827fea5abf6e4fb64fc64e6c"

sort-object-keys@^1.1.3:
version "1.1.3"
Expand Down

0 comments on commit 2db351c

Please sign in to comment.