Skip to content

Commit

Permalink
fix: math
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jun 12, 2024
1 parent d3f0835 commit 4d5ee5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/services/assetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class AssetService extends Asset {

this.unrealizedProfitAtMarketPrice = atMarketPrice
this.unrealizedProfitAtNotional = atNotional
this.unrealizedProfitByPeriod = this.outstandingQuantity.mul(this.currentPrice - this.periodPrice)
this.unrealizedProfitByPeriod = this.outstandingQuantity * (this.currentPrice - this.periodPrice)

this.periodPrice = this.currentPrice
}
Expand Down

0 comments on commit 4d5ee5c

Please sign in to comment.