Submitted by cccz
When a user creates an offer through the offerForETH function of the RubiconRouter contract, the offer function of the RubiconMarket contract is called, and the RubiconRouter contract address is set to offer.owner in the offer function.
But the RubiconRouter contract does not implement a function to cancel this offer. This means that if no one accepts the offer, the users tokens will be locked in the contract.
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/RubiconRouter.sol#L412-L437
Implement cancelForERC function to cancel this offer. And set the owner of offer_id to msg.sender in offerForETH function and check it in cancelForERC function
bghughes (Rubicon) marked as duplicate:
HickupHH3 (judge) commented:
