Skip to content

Commit

Permalink
Deleting Dispatcher
Browse files Browse the repository at this point in the history
The current implementation of Dispatcher is no longer valid. We need to
remove all the related code.
  • Loading branch information
dimpar committed Apr 9, 2024
1 parent 74c8cc8 commit 1121527
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 622 deletions.
174 changes: 0 additions & 174 deletions core/contracts/Dispatcher.sol

This file was deleted.

37 changes: 0 additions & 37 deletions core/contracts/Router.sol

This file was deleted.

1 change: 0 additions & 1 deletion core/contracts/stBTC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@thesis-co/solidity-contracts/contracts/token/IReceiveApproval.sol";

import "./Dispatcher.sol";
import "./PausableOwnable.sol";
import "./lib/ERC4626Fees.sol";
import "./interfaces/IDispatcher.sol";
Expand Down
6 changes: 3 additions & 3 deletions core/contracts/test/upgrades/stBTCV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@thesis-co/solidity-contracts/contracts/token/IReceiveApproval.sol";

import "../../Dispatcher.sol";
import "../../PausableOwnable.sol";
import "../../lib/ERC4626Fees.sol";
import "../../interfaces/IDispatcher.sol";
import {ZeroAddress} from "../../utils/Errors.sol";

/// @title stBTCV2
Expand All @@ -17,7 +17,7 @@ contract stBTCV2 is ERC4626Fees, PausableOwnable {
using SafeERC20 for IERC20;

/// Dispatcher contract that routes tBTC from stBTC to a given vault and back.
Dispatcher public dispatcher;
IDispatcher public dispatcher;

/// Address of the treasury wallet, where fees should be transferred to.
address public treasury;
Expand Down Expand Up @@ -119,7 +119,7 @@ contract stBTCV2 is ERC4626Fees, PausableOwnable {
/// @notice Updates the dispatcher contract and gives it an unlimited
/// allowance to transfer staked tBTC.
/// @param newDispatcher Address of the new dispatcher contract.
function updateDispatcher(Dispatcher newDispatcher) external onlyOwner {
function updateDispatcher(IDispatcher newDispatcher) external onlyOwner {
if (address(newDispatcher) == address(0)) {
revert ZeroAddress();
}
Expand Down
29 changes: 0 additions & 29 deletions core/deploy/02_deploy_dispatcher.ts

This file was deleted.

2 changes: 1 addition & 1 deletion core/deploy/12_mezo_allocator_update_maintainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
export default func

func.tags = ["MezoAllocatorUpdateMaintainer"]
func.dependencies = ["Dispatcher"]
func.dependencies = ["MezoAllocator"]
31 changes: 0 additions & 31 deletions core/deploy/22_transfer_ownership_dispatcher.ts

This file was deleted.

Loading

0 comments on commit 1121527

Please sign in to comment.