Skip to content

Commit

Permalink
Remove TODO from updateDispatcher
Browse files Browse the repository at this point in the history
We no longer expect the vaults and tokens to be owned by the dispatcher.
  • Loading branch information
nkuba committed Apr 9, 2024
1 parent 8fc4ab9 commit 89feb84
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/contracts/stBTC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ contract stBTC is ERC4626Fees, PausableOwnable {
emit DispatcherUpdated(oldDispatcher, address(newDispatcher));
dispatcher = newDispatcher;

// TODO: Once withdrawal/rebalancing is implemented, we need to revoke the
// approval of the vaults share tokens from the old dispatcher and approve
// a new dispatcher to manage the share tokens.

if (oldDispatcher != address(0)) {
// Setting allowance to zero for the old dispatcher
IERC20(asset()).forceApprove(oldDispatcher, 0);
Expand Down

0 comments on commit 89feb84

Please sign in to comment.