Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some additional comments #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
9 changes: 5 additions & 4 deletions contracts/auction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ contract DutchAuction {

// Price decay function parameters to be changed depending on the desired outcome

// Starting price in WEI; e.g. 2 * 10 ** 18
// Starting price in WEI, has to be > 0; e.g. 2 * 10 ** 18
uint public price_start;

// Divisor constant; e.g. 524880000
// Divisor constant, has to be > 0; e.g. 524880000
uint public price_constant;

// Divisor exponent; e.g. 3
// Divisor exponent, has to be >= 0; e.g. 3
uint32 public price_exponent;

// For calculating elapsed time for price
Expand Down Expand Up @@ -217,7 +217,8 @@ contract DutchAuction {
AuctionStarted(start_time, start_block);
}

/// @notice Finalize the auction - sets the final RDN token price and changes the auction
/// @notice Finalize the auction - sets the final RDN token price and changes the auction.
/// Function is safe to be called by anyone.
/// stage after no bids are allowed anymore.
/// @dev Finalize auction and set the final RDN token price.
function finalizeAuction() public atStage(Stages.AuctionStarted)
Expand Down