Skip to content

Commit

Permalink
Merge pull request #11463 from vegaprotocol/fix/11452
Browse files Browse the repository at this point in the history
feat: implement alternative estimations for fully collateralised capped future
  • Loading branch information
jeremyletang committed Aug 16, 2024
1 parent 4ad3626 commit 3bf2ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
- [11457](https://github.com/vegaprotocol/vega/issues/11457) - Fix cursor column ordering for game scores.
- [11454](https://github.com/vegaprotocol/vega/issues/11454) - Ensure ended transfers proper handling.


## 0.76.1

### 🐛 Fixes
Expand Down
1 change: 1 addition & 0 deletions datanode/api/trading_data_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3891,6 +3891,7 @@ func calcPositionMarginCappedAndFullyCollateralised(
if totalVolume == 0 {
return num.DecimalZero()
}

averageEntryPrice := ongoing.Div(num.DecimalFromInt64(totalVolume))

if positionSize < 0 {
Expand Down

0 comments on commit 3bf2ca7

Please sign in to comment.