Perp funding: Fix logging in update funding + deactivate pos (#528)
This commit is contained in:
parent
08f6bf10ff
commit
8559d3ef07
|
@ -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,
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue