Skip to content

Add buy now feature.#23

Merged
cinnabarhorse merged 12 commits into
masterfrom
feat/buy-now
Apr 25, 2024
Merged

Add buy now feature.#23
cinnabarhorse merged 12 commits into
masterfrom
feat/buy-now

Conversation

@orionstardust

Copy link
Copy Markdown
Contributor

ref: #21

@orionstardust orionstardust self-assigned this Mar 5, 2024
Comment thread contracts/facets/GBMFacet.sol Outdated

emit Auction_BoughtNow(_auctionID, msg.sender);

if (IERC165(ca).supportsInterface(0x2a55205a)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refactor this code so we're not duplicating code (it also appears in the "claim" function) @orionstardust

}

//Recommended to be set to 70
function setBuyItNowInvalidationThreshold(uint256 _invalidationThreshold) external onlyOwner {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should be called atomically in the upgrade script @orionstardust

Comment thread contracts/facets/GBMFacet.sol Outdated
if (msg.sender == a.owner) revert("OwnerBuyNowNotAllowed");
if (a.info.startTime > block.timestamp) revert("AuctionNotStarted");
//verify existence
if (a.owner == address(0)) revert("NoAuction");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated code @orionstardust

Comment thread contracts/facets/GBMFacet.sol
@cinnabarhorse
cinnabarhorse merged commit 8d04519 into master Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants