From f860c1e4a60fbb0e32335d186f894f4d9a22b8ba Mon Sep 17 00:00:00 2001 From: Flocqst Date: Wed, 11 Sep 2024 15:42:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Rename=20ended=20to=20settled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Auction.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Auction.sol b/src/Auction.sol index 4f66aac..b57eabc 100644 --- a/src/Auction.sol +++ b/src/Auction.sol @@ -69,7 +69,7 @@ contract Auction is Ownable, Initializable { error AuctionNotEnded(); /// @notice Thrown when trying to settle an auction that has already been settled - error AuctionEnded(); + error AuctionAlreadySettled(); /// @notice Thrown when trying to lock bidding when it is already locked error BiddingLockedErr(); @@ -99,8 +99,8 @@ contract Auction is Ownable, Initializable { /// @notice Indicates if the auction has started. bool public started; - /// @notice Indicates if the auction has ended. - bool public ended; + /// @notice Indicates if the auction has been settled. + bool public settled; /// @notice Indicates if bidding is locked bool public locked; @@ -220,9 +220,9 @@ contract Auction is Ownable, Initializable { function settleAuction() external { if (!started) revert AuctionNotStarted(); if (block.timestamp < endAt) revert AuctionNotEnded(); - if (ended) revert AuctionEnded(); + if (settled) revert AuctionAlreadySettled(); - ended = true; + settled = true; if (highestBidder != address(0)) { usdc.transfer(highestBidder, auctionAmount);