Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into stake-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuba committed Apr 10, 2024
2 parents fd154c0 + c64e9f8 commit c40e456
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 667 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
12 changes: 0 additions & 12 deletions core/contracts/test/TestERC4626.sol

This file was deleted.

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 deposited 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
30 changes: 0 additions & 30 deletions core/deploy/00_resolve_testing_erc4626.ts

This file was deleted.

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 @@ -20,5 +20,5 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

export default func

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

This file was deleted.

Loading

0 comments on commit c40e456

Please sign in to comment.