Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Mar 12, 2024
1 parent 0c0ad3b commit 2994e11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions programs/jit-proxy/src/instructions/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn jit<'info>(ctx: Context<'_, '_, '_, 'info, Jit<'info>>, params: JitParams
let perp_market = perp_market_map.get_ref(&market_index)?;
let reserve_price = perp_market.amm.reserve_price()?;

let maker_price = match maker_direction {
match maker_direction {
PositionDirection::Long => {
let amm_bid_price = perp_market.amm.bid_price(reserve_price)?;

Expand All @@ -152,9 +152,7 @@ pub fn jit<'info>(ctx: Context<'_, '_, '_, 'info, Jit<'info>>, params: JitParams
taker_price
}
}
};

maker_price
}
} else {
taker_price
};
Expand Down
4 changes: 3 additions & 1 deletion ts/sdk/src/jitter/jitterShotgun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export class JitterShotgun extends BaseJitter {
txParams
);

console.log(`Successfully sent tx for ${orderSignature} txSig ${txSig}`);
console.log(
`Successfully sent tx for ${orderSignature} txSig ${txSig}`
);
await sleep(10000);
this.deleteOnGoingAuction(orderSignature);
return;
Expand Down

0 comments on commit 2994e11

Please sign in to comment.