Perp funding: Fix logging in update funding + deactivate pos (#528)

This commit is contained in:
Christian Kamm 2023-03-31 10:58:04 +02:00 committed by GitHub
parent 08f6bf10ff
commit 8559d3ef07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -867,7 +867,7 @@ impl<
mango_account: mango_account_pubkey,
market_index: perp_market_index,
cumulative_long_funding: perp_position.cumulative_long_funding,
cumulative_short_funding: perp_position.cumulative_long_funding,
cumulative_short_funding: perp_position.cumulative_short_funding,
maker_volume: perp_position.maker_volume,
taker_volume: perp_position.taker_volume,
perp_spot_transfers: perp_position.perp_spot_transfers,

View File

@ -306,7 +306,7 @@ impl PerpMarket {
mango_group: self.group,
market_index: self.perp_market_index,
long_funding: self.long_funding.to_bits(),
short_funding: self.long_funding.to_bits(),
short_funding: self.short_funding.to_bits(),
price: oracle_price.to_bits(),
stable_price: self.stable_price().to_bits(),
fees_accrued: self.fees_accrued.to_bits(),