Skip to content

Commit

Permalink
fix: issue
Browse files Browse the repository at this point in the history
  • Loading branch information
orionstardust committed Mar 22, 2024
1 parent 07f71ff commit 7257bf3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ export function handleAuction_Initialized(
let result = contract.try_getAuctionInfo(event.params._auctionID);
let resultHammerTime = contract.try_getAuctionHammerTimeDuration();

log.warning("111:000:auction", [
auction.bidDecimals.toString(),
auction.bidMultiplier.toString(),
]);
// @todo: seller, createdAt, startsAt, endsAt, claimAt,
// contractId quantity, presetId, cancelled, ercType, bids objects
if (!result.reverted) {
Expand All @@ -338,7 +342,10 @@ export function handleAuction_Initialized(
let presets = auctionInfo.presets;
auction.bidDecimals = presets.bidDecimals;
auction.bidMultiplier = presets.bidMultiplier;

log.warning("111:222:presets", [
presets.bidDecimals.toString(),
presets.bidMultiplier.toString(),
]);
auction.incMax = presets.incMax;
auction.incMin = presets.incMin;
auction.stepMin = presets.stepMin;
Expand All @@ -362,6 +369,10 @@ export function handleAuction_Initialized(
if (!resultHammerTime.reverted) {
auction.hammerTimeDuration = resultHammerTime.value;
}
log.warning("111:111:auction", [
auction.bidDecimals.toString(),
auction.bidMultiplier.toString(),
]);

auction.save();

Expand Down

0 comments on commit 7257bf3

Please sign in to comment.