Skip to content

Commit

Permalink
remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Dec 10, 2023
1 parent ecfc2c7 commit 740a71f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -957,12 +957,12 @@ export class OpenSeaSDK {
}

/**
* Compute the `basePrice` and `extra` parameters to be used to price an order.
* Compute the `basePrice` and `endPrice` parameters to be used to price an order.
* Also validates the expiration time and auction type.
* @param tokenAddress Address of the ERC-20 token to use for trading. Use the null address for ETH.
* @param expirationTime When the auction expires, or 0 if never.
* @param startAmount The base value for the order, in the token's main units (e.g. ETH instead of wei)
* @param endAmount The end value for the order, in the token's main units (e.g. ETH instead of wei). If unspecified, the order's `extra` attribute will be 0
* @param endAmount The end value for the order, in the token's main units (e.g. ETH instead of wei)
*/
private async _getPriceParameters(
orderSide: OrderSide,
Expand Down Expand Up @@ -993,7 +993,6 @@ export class OpenSeaSDK {

const basePrice = startAmountWei;
const endPrice = endAmountWei;
const extra = priceDiffWei;

// Validation
if (startAmount == null || startAmountWei < 0) {
Expand All @@ -1012,7 +1011,7 @@ export class OpenSeaSDK {
"Expiration time must be set if order will change in price.",
);
}
return { basePrice, extra, endPrice };
return { basePrice, endPrice };
}

private _dispatch(event: EventType, data: EventData) {
Expand Down

0 comments on commit 740a71f

Please sign in to comment.