Skip to content

Commit

Permalink
chore: whitespace changesd
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jul 21, 2023
1 parent 8281888 commit a29a826
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
9 changes: 3 additions & 6 deletions packages/inter-protocol/src/auction/auctionBook.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +125,22 @@ harden(BookDataNotificationShape);

/**
* @typedef {object} ScaledBidData
*
* @property {Ratio} bidScaling
* @property {Amount<'nat'>} wanted
* @property {boolean} exitAfterBuy
*/

/**
* @typedef {object} PricedBidData
*
* @property {Ratio} price
* @property {Amount<'nat'>} wanted
* @property {boolean} exitAfterBuy
*/

/**
* @typedef {object} BidDataNotification
*
* @property {Array<ScaledBidData>} scaledBids
* @property {Array<PricedBidData>} pricedBids
* @property {ScaledBidData[]} scaledBids
* @property {PricedBidData[]} pricedBids
*/
export const BidDataNotificationShape = {
scaledBids: M.arrayOf(M.any()),
Expand Down Expand Up @@ -658,7 +655,7 @@ export const prepareAuctionBook = (baggage, zcf, makeRecorderKit) => {
const { remainingProceedsGoal } = state;
const { helper } = facets;
for (const [key, seatRecord] of prioritizedOffers) {
const { seat, price: p} = seatRecord;
const { seat, price: p } = seatRecord;
if (
remainingProceedsGoal &&
AmountMath.isEmpty(remainingProceedsGoal)
Expand Down
13 changes: 8 additions & 5 deletions packages/inter-protocol/src/auction/offerBook.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const nextSequenceNumber = baggage => {
/**
* @typedef {{
* seat: ZCFSeat;
* originalWant: Amount<'nat'>,
* remainingWant: Amount<'nat'>,
* originalWant: Amount<'nat'>;
* remainingWant: Amount<'nat'>;
* seqNum: NatValue;
* received: Amount<'nat'>;
* timestamp: Timestamp;
Expand Down Expand Up @@ -64,16 +64,19 @@ const makeGetBidDataRecorder = (bidDataKits, bidDataKitPromises) => {

const deleteNodeIfPresent = key => {
if (bidDataKitPromises.has(key) || bidDataKits.has(key)) {

// TODO(8063) delete node rather than erasing the data
return E(getBidDataRecorder(key)).writeFinal('');
}
}
};

return { getBidDataRecorder, deleteNodeIfPresent };
};

/** @typedef {ReturnType<import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit>} RecorderKit */
/**
* @typedef {ReturnType<
* import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit
* >} RecorderKit
*/

/**
* Prices in this book are expressed as percentage of the full oracle price
Expand Down

0 comments on commit a29a826

Please sign in to comment.