Skip to content

Commit

Permalink
Fix pnl computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Apr 11, 2023
1 parent f1627db commit 3ebb2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlc-manager/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,7 @@ where
} else {
contract.accepted_contract.offered_contract.total_collateral - payout
};
let pnl = own_collateral as i64 - own_payout as i64;
let pnl = own_payout as i64 - own_collateral as i64;
Ok(ClosedContract {
attestations: None,
signed_cet: None,
Expand Down

0 comments on commit 3ebb2d5

Please sign in to comment.