Skip to content

Commit

Permalink
chore: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jun 11, 2024
1 parent 1bd2411 commit e3cedb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mappings/services/assetPositionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class AssetPositionService extends AssetPosition {
}

static buy(assetId: string, hash: string, timestamp: Date, quantity: bigint, price: bigint) {
logger.info(`Creating asset position ${assetId}-${hash} for quantity ${quantity} at ${timestamp}`)
if (quantity > BigInt(0)) {
return this.init(assetId, hash, timestamp, quantity, price).save()
} else {
Expand Down

0 comments on commit e3cedb9

Please sign in to comment.