-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f30567c
commit 08303a3
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import "@openzeppelin/contracts/proxy/Clones.sol"; | |
/// @title Auction Factory Contract for USDC-KWENTA Auctions | ||
/// @author Flocqst ([email protected]) | ||
contract AuctionFactory { | ||
|
||
/// @notice Kwenta owned/operated multisig address that | ||
/// can authorize upgrades | ||
/// @dev making immutable because the pDAO address | ||
|
@@ -48,9 +49,11 @@ contract AuctionFactory { | |
_; | ||
} | ||
|
||
/// @notice Constructs the AuctionFactory with the address of the auction implementation contract | ||
/// @notice Constructs the AuctionFactory with the address of the auction | ||
/// implementation contract | ||
/// @param _pDAO Kwenta owned/operated multisig address | ||
/// @param _auctionImplementation The address of the auction implementation contract | ||
/// @param _auctionImplementation The address of the auction implementation | ||
/// contract | ||
constructor(address _pDAO, address _auctionImplementation) { | ||
pDAO = _pDAO; | ||
auctionImplementation = _auctionImplementation; | ||
|
@@ -63,13 +66,17 @@ contract AuctionFactory { | |
/// @param _kwenta The address for the KWENTA ERC20 token | ||
/// @param _startingBid The starting bid amount | ||
/// @return newAuction The newly created auction contract | ||
/// @dev The newly created auction contract is initialized and added to the auctions array and returned | ||
/// @dev The newly created auction contract is initialized and added to the | ||
/// auctions array and returned | ||
function createAuction( | ||
address _owner, | ||
address _usdc, | ||
address _kwenta, | ||
uint256 _startingBid | ||
) external returns (Auction newAuction) { | ||
) | ||
external | ||
returns (Auction newAuction) | ||
{ | ||
address clone = Clones.clone(auctionImplementation); | ||
Auction(clone).initialize( | ||
_owner, _usdc, _kwenta, _startingBid, bidBuffer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters