Skip to content

Commit

Permalink
Merge pull request #365 from drift-labs/master
Browse files Browse the repository at this point in the history
remove devnet guards from swift example bots
  • Loading branch information
NourAlharithi authored Jan 31, 2025
2 parents e6cfd33 + 1f61d0b commit df254ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/experimental-bots/swift/makerExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ export class SwiftMaker {
private userMap: UserMap,
runtimeSpec: RuntimeSpec,
private dryRun?: boolean
) {
if (runtimeSpec.driftEnv != 'devnet') {
throw new Error('SwiftMaker only works on devnet');
}
}
) {}

async init() {
await this.subscribeWs();
Expand Down
6 changes: 1 addition & 5 deletions src/experimental-bots/swift/takerExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ export class SwiftTaker {
private driftClient: DriftClient,
runtimeSpec: RuntimeSpec,
private intervalMs: number
) {
if (runtimeSpec.driftEnv != 'devnet') {
throw new Error('SwiftTaker only works on devnet');
}
}
) {}

async init() {
await this.startInterval();
Expand Down

0 comments on commit df254ee

Please sign in to comment.