Skip to content

Commit 2235c66

Browse files
authored
Merge pull request #522 from drift-labs/master
merge mainnet
2 parents 7d291ce + d110cc2 commit 2235c66

File tree

10 files changed

+52
-547
lines changed

10 files changed

+52
-547
lines changed

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,25 @@
4242
"yaml": "2.3.4"
4343
},
4444
"resolutions": {
45-
"jito-ts": "4.1.1"
45+
"jito-ts": "4.1.1",
46+
"chalk": "<5.6.1",
47+
"debug": "<4.4.2",
48+
"ansi-styles": "<6.2.2",
49+
"supports-color": "<10.2.1",
50+
"strip-ansi": "<7.1.1",
51+
"ansi-regex": "<6.2.1",
52+
"wrap-ansi": "<9.0.1",
53+
"color-convert": "<3.1.1",
54+
"color-name": "<2.0.1",
55+
"color-string": "<2.1.1",
56+
"simple-swizzle": "<0.2.3",
57+
"is-arrayish": "<0.3.3",
58+
"slice-ansi": "<7.1.1",
59+
"error-ex": "<1.3.3",
60+
"backslash": "<0.2.1",
61+
"chalk-template": "<1.1.1",
62+
"supports-hyperlinks": "<4.1.1",
63+
"has-ansi": "<6.0.1"
4664
},
4765
"devDependencies": {
4866
"@types/chai": "4.3.11",

src/bots/filler.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,6 @@ export class FillerBot extends TxThreaded implements Bot {
355355
);
356356

357357
this.priorityFeeSubscriber = priorityFeeSubscriber;
358-
this.priorityFeeSubscriber.updateAddresses([
359-
new PublicKey('8BnEgHoWFysVcuFFX7QztDmzuH8r5ZFvyP3sYwn1XTh6'), // Openbook SOL/USDC
360-
new PublicKey('8UJgxaiQx5nTrdDgph5FiahMmzduuLTLf5WmsPegYA6W'), // sol-perp
361-
]);
362358
this.blockhashSubscriber = blockhashSubscriber;
363359

364360
this.expiredNodesSet = new LRUCache<string, boolean>({

src/bots/liquidator.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,12 +2666,8 @@ export class LiquidatorBot implements Bot {
26662666
}
26672667
}
26682668

2669-
const baseAmountToLiquidate = this.calculateBaseAmountToLiquidate(
2670-
user.getPerpPositionWithLPSettle(
2671-
liquidateePosition.marketIndex,
2672-
liquidateePosition
2673-
)[0]
2674-
);
2669+
const baseAmountToLiquidate =
2670+
this.calculateBaseAmountToLiquidate(liquidateePosition);
26752671

26762672
const subAccountToLiqPerp = this.getSubAccountIdToLiquidatePerp(
26772673
liquidateePosition.marketIndex

src/bots/pythCranker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,6 @@ export class PythCrankerBot implements Bot {
259259
this.feedIdToPriceFeedMap.set(priceFeed.id, priceFeed);
260260
}
261261
);
262-
263-
this.priorityFeeSubscriber?.updateAddresses([
264-
this.driftClient.getReceiverProgram().programId,
265-
]);
266262
}
267263

268264
async reset(): Promise<void> {

src/bots/pythLazerCranker.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
DevnetPerpMarkets,
88
DevnetSpotMarkets,
99
DriftClient,
10-
getPythLazerOraclePublicKey,
1110
getVariant,
1211
MainnetPerpMarkets,
1312
MainnetSpotMarkets,
@@ -170,15 +169,6 @@ export class PythLazerCrankerBot implements Bot {
170169
);
171170

172171
await this.pythLazerClient.subscribe();
173-
174-
this.priorityFeeSubscriber?.updateAddresses(
175-
this.pythLazerClient.allSubscribedIds.map((feedId) =>
176-
getPythLazerOraclePublicKey(
177-
this.driftClient.program.programId,
178-
Number(feedId)
179-
)
180-
)
181-
);
182172
}
183173

184174
async reset(): Promise<void> {

0 commit comments

Comments
 (0)