Skip to content

Commit

Permalink
feat(dutch-auction-proposal): implement dutch auction proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ashhanai committed Mar 25, 2024
1 parent ce0a4eb commit c5457a3
Show file tree
Hide file tree
Showing 4 changed files with 1,127 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/PWNErrors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ error NonceNotUsable(address addr, uint256 nonceSpace, uint256 nonce);
error InvalidSignatureLength(uint256);
error InvalidSignature(address signer, bytes32 digest);

// Offer
error CollateralIdNotWhitelisted(uint256 id);
error MinCollateralAmountNotSet();
error InsufficientCollateralAmount(uint256 current, uint256 limit);

// Proposal
error CallerIsNotStatedProposer(address);
error InvalidDuration(uint256 current, uint256 limit);
Expand All @@ -56,6 +51,14 @@ error Expired(uint256 current, uint256 expiration);
error CallerNotAllowedAcceptor(address current, address allowed);
error InvalidPermitOwner(address current, address expected);
error InvalidPermitAsset(address current, address expected);
error CollateralIdNotWhitelisted(uint256 id);
error MinCollateralAmountNotSet();
error InsufficientCollateralAmount(uint256 current, uint256 limit);
error InvalidAuctionDuration(uint256 current, uint256 limit);
error AuctionDurationNotInFullMinutes(uint256 current);
error InvalidCreditAmountRange(uint256 minCreditAmount, uint256 maxCreditAmount);
error InvalidCreditAmount(uint256 auctionCreditAmount, uint256 intendedCreditAmount, uint256 slippage);
error AuctionNotInProgress(uint256 currentTimestamp, uint256 auctionStart);

// Input data
error InvalidInputData();
Expand Down
Loading

0 comments on commit c5457a3

Please sign in to comment.