Skip to content

Commit

Permalink
fix: burner event order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 17, 2025
1 parent f24c48e commit 90f64d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/0.8.9/Burner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ contract Burner is IBurner, AccessControlEnumerable {
if (_amount == 0) revert ZeroRecoveryAmount();
if (_token == address(LIDO)) revert StETHRecoveryWrongFunc();

emit ERC20Recovered(msg.sender, _token, _amount);

IERC20(_token).safeTransfer(LOCATOR.treasury(), _amount);

emit ERC20Recovered(msg.sender, _token, _amount);
}

/**
Expand All @@ -259,9 +259,9 @@ contract Burner is IBurner, AccessControlEnumerable {
function recoverERC721(address _token, uint256 _tokenId) external {
if (_token == address(LIDO)) revert StETHRecoveryWrongFunc();

emit ERC721Recovered(msg.sender, _token, _tokenId);

IERC721(_token).transferFrom(address(this), LOCATOR.treasury(), _tokenId);

emit ERC721Recovered(msg.sender, _token, _tokenId);
}

/**
Expand Down

0 comments on commit 90f64d4

Please sign in to comment.