Skip to content

Commit

Permalink
natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrai committed Feb 20, 2024
1 parent c59c9fd commit 45e9b6e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions packages/nouns-contracts/contracts/NounsAuctionHouseV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ contract NounsAuctionHouseV2 is
/// @notice The Nouns price feed state
mapping(uint256 => SettlementState) settlementHistory;

constructor(
INounsToken _nouns,
address _weth,
uint256 _duration
) initializer {
constructor(INounsToken _nouns, address _weth, uint256 _duration) initializer {
nouns = _nouns;
weth = _weth;
duration = _duration;
Expand Down Expand Up @@ -116,12 +112,18 @@ contract NounsAuctionHouseV2 is
_settleAuction();
}

/**
* @notice Create a bid for a Noun, with a given amount.
* @dev This contract only accepts payment in ETH.
*/
function createBid(uint256 nounId) external payable override {
createBid(nounId, 0);
}

/**
* @notice Create a bid for a Noun, with a given amount.
* @param nounId id of the Noun to bid on
* @param clientId the client which facilitate this action
* @dev This contract only accepts payment in ETH.
*/
function createBid(uint256 nounId, uint32 clientId) public payable override {
Expand Down Expand Up @@ -364,11 +366,10 @@ contract NounsAuctionHouseV2 is
* @return settlements An array of type `Settlement`, where each Settlement includes a timestamp,
* the Noun ID of that auction, the winning bid amount, and the winner's address.
*/
function getSettlements(uint256 auctionCount, bool skipEmptyValues)
external
view
returns (Settlement[] memory settlements)
{
function getSettlements(
uint256 auctionCount,
bool skipEmptyValues
) external view returns (Settlement[] memory settlements) {
uint256 latestNounId = auctionStorage.nounId;
if (!auctionStorage.settled && latestNounId > 0) {
latestNounId -= 1;
Expand Down

0 comments on commit 45e9b6e

Please sign in to comment.