Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jan 24, 2025
1 parent 5446535 commit 8d6d74e
Show file tree
Hide file tree
Showing 7 changed files with 1,407 additions and 1,311 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENV DOCKER_TAG=$DOCKER_CHANNEL

WORKDIR /arb-bot
ADD . .
RUN rm -rf test/*.js test/*.ts test/e2e
RUN npm install
RUN npm run build
CMD node arb-bot
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@opentelemetry/resources": "^1.22.0",
"@opentelemetry/sdk-trace-base": "^1.22.0",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@rainlanguage/orderbook": "^0.0.1-alpha.1",
"@rainlanguage/orderbook": "^0.0.1-alpha.6",
"axios": "^1.3.4",
"commander": "^11.0.0",
"dotenv": "^16.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/processOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ export async function processPair(args: {
await quoteSingleOrder(
orderPairObject,
(config as any).isTest ? (config as any).quoteRpc : config.rpc,
// undefined,
// config.quoteGas,
undefined,
config.quoteGas,
);
if (orderPairObject.takeOrders[0].quote?.maxOutput.isZero()) {
result.report = {
Expand Down
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ export async function quoteOrders(
orderDetails: BundledOrders[][],
rpcs: string[],
blockNumber?: bigint,
// gas?: bigint,
gas?: bigint,
multicallAddressOverride?: string,
): Promise<BundledOrders[][]> {
let quoteResults: any[] = [];
Expand All @@ -770,7 +770,7 @@ export async function quoteOrders(
targets,
rpc,
blockNumber,
// gas,
gas,
multicallAddressOverride,
);
break;
Expand Down Expand Up @@ -828,7 +828,7 @@ export async function quoteSingleOrder(
orderDetails: BundledOrders,
rpcs: string[],
blockNumber?: bigint,
// gas?: bigint,
gas?: bigint,
multicallAddressOverride?: string,
) {
for (let i = 0; i < rpcs.length; i++) {
Expand All @@ -844,7 +844,7 @@ export async function quoteSingleOrder(
] as any as QuoteTarget[],
rpc,
blockNumber,
// gas,
gas,
multicallAddressOverride,
)
)[0];
Expand Down
Loading

0 comments on commit 8d6d74e

Please sign in to comment.