ran prettier
This commit is contained in:
parent
77a2ca1ddc
commit
a00e416a19
@ -20,7 +20,7 @@ export enum NetworkId {
|
|||||||
Ganache = 50,
|
Ganache = 50,
|
||||||
}
|
}
|
||||||
|
|
||||||
const NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
|
const NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
|
||||||
|
|
||||||
const networkToAddresses: { [networkId: number]: ContractAddresses } = {
|
const networkToAddresses: { [networkId: number]: ContractAddresses } = {
|
||||||
1: {
|
1: {
|
||||||
|
@ -117,7 +117,9 @@ describe('DutchAuctionWrapper', () => {
|
|||||||
expect(auctionDetails.beginTimeSeconds, 'auctionDetails.beginTimeSeconds').to.be.bignumber.equal(
|
expect(auctionDetails.beginTimeSeconds, 'auctionDetails.beginTimeSeconds').to.be.bignumber.equal(
|
||||||
auctionBeginTimeSeconds,
|
auctionBeginTimeSeconds,
|
||||||
);
|
);
|
||||||
expect(auctionDetails.beginAmount, 'auctionDetails.beginAmount').to.be.bignumber.equal(auctionBeginTakerAmount);
|
expect(auctionDetails.beginAmount, 'auctionDetails.beginAmount').to.be.bignumber.equal(
|
||||||
|
auctionBeginTakerAmount,
|
||||||
|
);
|
||||||
expect(auctionDetails.endTimeSeconds, 'auctionDetails.endTimeSeconds').to.be.bignumber.equal(
|
expect(auctionDetails.endTimeSeconds, 'auctionDetails.endTimeSeconds').to.be.bignumber.equal(
|
||||||
auctionEndTimeSeconds,
|
auctionEndTimeSeconds,
|
||||||
);
|
);
|
||||||
|
@ -38,7 +38,7 @@ export class DutchAuctionUtils {
|
|||||||
feeRecipientAddress?: string,
|
feeRecipientAddress?: string,
|
||||||
): Promise<SignedOrder> {
|
): Promise<SignedOrder> {
|
||||||
// Notes on sell order:
|
// Notes on sell order:
|
||||||
// - The `takerAssetAmount` is set to the `auctionEndTakerAssetAmount`, which is the lowest amount the
|
// - The `takerAssetAmount` is set to the `auctionEndTakerAssetAmount`, which is the lowest amount the
|
||||||
// the seller can expect to receive
|
// the seller can expect to receive
|
||||||
// - The `makerAssetData` is overloaded to include the auction begin time and begin taker asset amount
|
// - The `makerAssetData` is overloaded to include the auction begin time and begin taker asset amount
|
||||||
const makerAssetDataWithAuctionDetails = DutchAuctionWrapper.encodeDutchAuctionAssetData(
|
const makerAssetDataWithAuctionDetails = DutchAuctionWrapper.encodeDutchAuctionAssetData(
|
||||||
@ -78,7 +78,7 @@ export class DutchAuctionUtils {
|
|||||||
): Promise<SignedOrder> {
|
): Promise<SignedOrder> {
|
||||||
const dutchAuctionData = DutchAuctionWrapper.decodeDutchAuctionData(sellOrder.makerAssetData);
|
const dutchAuctionData = DutchAuctionWrapper.decodeDutchAuctionData(sellOrder.makerAssetData);
|
||||||
// Notes on buy order:
|
// Notes on buy order:
|
||||||
// - The `makerAssetAmount` is set to `dutchAuctionData.beginAmount`, which is
|
// - The `makerAssetAmount` is set to `dutchAuctionData.beginAmount`, which is
|
||||||
// the highest amount the buyer would have to pay out at any point during the auction.
|
// the highest amount the buyer would have to pay out at any point during the auction.
|
||||||
// - The `takerAssetAmount` is set to the seller's `makerAssetAmount`, as the buyer
|
// - The `takerAssetAmount` is set to the seller's `makerAssetAmount`, as the buyer
|
||||||
// receives the entire amount being sold by the seller.
|
// receives the entire amount being sold by the seller.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user