Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

rolled back commenting out erc721 check in WithdrawProxy #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/WithdrawProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,15 @@ contract WithdrawProxy is ERC4626Cloned, WithdrawVaultBase {
uint256 tokenId,
bytes calldata _data
) external virtual returns (bytes4) {
// require(
// msg.sender == address(VAULT().ROUTER().LIEN_TOKEN()),
// "LienToken not msg.sender"
// );
// require(_from == address(VAULT()), "only vault can call");
// require(
// address(this) == VAULT().ROUTER().LIEN_TOKEN().ownerOf(tokenId),
// "token not transferred"
// );
require(
msg.sender == address(VAULT().ROUTER().LIEN_TOKEN()),
"LienToken not msg.sender"
);
require(_from == address(VAULT()), "only vault can call");
require(
address(this) == VAULT().ROUTER().LIEN_TOKEN().ownerOf(tokenId),
"token not transferred"
);

uint256 expected;
uint256 auctionEnd;
Expand Down
1 change: 0 additions & 1 deletion src/interfaces/IAstariaRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {ILienToken} from "core/interfaces/ILienToken.sol";

import {IPausable} from "core/utils/Pausable.sol";
import {IBeacon} from "core/interfaces/IBeacon.sol";
// import {IERC4626RouterBase} from "gpl/interfaces/IERC4626RouterBase.sol";
import {OrderParameters} from "seaport-types/src/lib/ConsiderationStructs.sol";

interface IAstariaRouter is IPausable, IBeacon {
Expand Down