Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
chore: bump version to v2.15.11 (#147)
Browse files Browse the repository at this point in the history
feat: update dln-client to v8.2.1
  • Loading branch information
devDesu authored Oct 25, 2023
1 parent 7232efc commit 45f46e9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 48 deletions.
75 changes: 32 additions & 43 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debridge-finance/dln-taker",
"version": "2.16.0",
"version": "2.16.1",
"description": "DLN executor is the rule-based daemon service developed to automatically execute orders placed on the deSwap Liquidity Network (DLN) across supported blockchains",
"license": "GPL-3.0-only",
"author": "deBridge",
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"types": "./dist/index.d.ts",
"dependencies": {
"@debridge-finance/dln-client": "8.1.0",
"@debridge-finance/dln-client": "8.2.1",
"@debridge-finance/legacy-dln-profitability": "2.1.0",
"@debridge-finance/solana-utils": "4.2.1",
"@protobuf-ts/plugin": "2.8.1",
Expand Down
3 changes: 2 additions & 1 deletion src/processors/universal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
OrderState,
tokenAddressToString,
SwapConnectorRequest,
SwapConnectorResult,
} from '@debridge-finance/dln-client';
import BigNumber from 'bignumber.js';
import { Logger } from 'pino';
Expand Down Expand Up @@ -940,7 +941,7 @@ class UniversalProcessor extends BaseOrderProcessor {
context: OrderProcessorContext,
logger: Logger,
): Promise<{
swapResult?: SwapConnectorRequest['routeHint'];
swapResult?: SwapConnectorResult;
transaction: Awaited<ReturnType<DlnClient['preswapAndFulfillOrder']>>;
}> {
if (buffersAreEqual(reserveDstToken, order.take.tokenAddress)) {
Expand Down
6 changes: 4 additions & 2 deletions src/providers/utils/tryInitAltSolana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ export async function tryInitTakerALT(
chains: ChainId[],
solanaClient: Solana.DlnClient,
logger: Logger,
retries = 3,
retries = 5,
) {
for (let i = 0; i < retries; i += 1) {
// WARN: initForTaket requires explicit payer (tx signer) and actual taker addresses
// On MPC feat activation initForTaker payer will be = helper wallet and taker = mpc address
// eslint-disable-next-line no-await-in-loop -- Intentional because works only during initialization
const maybeTxs = await solanaClient.initForTaker(wallet.publicKey, chains);
const maybeTxs = await solanaClient.initForTaker(wallet.publicKey, wallet.publicKey, chains);
if (!maybeTxs) {
logger.info(
`ALT already initialized or was found: ${solanaClient.fulfillPreswapALT!.toBase58()}`,
Expand Down

0 comments on commit 45f46e9

Please sign in to comment.