Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cxkoda committed Jun 26, 2023
1 parent d5df87e commit 0b02ac0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
7 changes: 4 additions & 3 deletions contracts/sales/LinearDutchAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ abstract contract LinearDutchAuction is Seller {
@dev The auction can be toggle on and off with this function, without the
cost of having to update the entire config.
*/
function setAuctionStartPoint(
uint256 startPoint
) public onlyRole(DEFAULT_STEERING_ROLE) {
function setAuctionStartPoint(uint256 startPoint)
public
onlyRole(DEFAULT_STEERING_ROLE)
{
dutchAuctionConfig.startPoint = startPoint;
}

Expand Down
32 changes: 18 additions & 14 deletions contracts/sales/Seller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ abstract contract Seller is AccessControlPausable, ReentrancyGuard {
SellerConfig public sellerConfig;

/// @notice Sets the seller config.
function setSellerConfig(
SellerConfig memory config
) public onlyRole(DEFAULT_STEERING_ROLE) {
function setSellerConfig(SellerConfig memory config)
public
onlyRole(DEFAULT_STEERING_ROLE)
{
require(
config.totalInventory >= config.freeQuota,
"Seller: excessive free quota"
Expand Down Expand Up @@ -87,9 +88,10 @@ abstract contract Seller is AccessControlPausable, ReentrancyGuard {
address payable public beneficiary;

/// @notice Sets the recipient of revenues.
function setBeneficiary(
address payable _beneficiary
) public onlyRole(DEFAULT_STEERING_ROLE) {
function setBeneficiary(address payable _beneficiary)
public
onlyRole(DEFAULT_STEERING_ROLE)
{
beneficiary = _beneficiary;
}

Expand All @@ -103,10 +105,11 @@ abstract contract Seller is AccessControlPausable, ReentrancyGuard {
bytes as this allows simple passing of a set cost (see
ArbitraryPriceSeller).
*/
function cost(
uint256 n,
uint256 metadata
) public view virtual returns (uint256);
function cost(uint256 n, uint256 metadata)
public
view
virtual
returns (uint256);

/**
@dev Called by both _purchase() and purchaseFreeOfCharge() after all limits
Expand Down Expand Up @@ -180,10 +183,11 @@ abstract contract Seller is AccessControlPausable, ReentrancyGuard {
@notice Allows the contract owner to purchase without payment, within the
quota enforced by the SellerConfig.
*/
function purchaseFreeOfCharge(
address to,
uint256 n
) public onlyRole(DEFAULT_STEERING_ROLE) whenNotPaused {
function purchaseFreeOfCharge(address to, uint256 n)
public
onlyRole(DEFAULT_STEERING_ROLE)
whenNotPaused
{
/**
* ##### CHECKS
*/
Expand Down

0 comments on commit 0b02ac0

Please sign in to comment.