@lavarage/sdk 7.2.2 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abi/borrowerOperations.ts +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/evm.ts +6 -0
- package/lending.ts +0 -1
- package/package.json +1 -1
package/evm.ts
CHANGED
|
@@ -33,6 +33,7 @@ export const openPositionEvm = async (
|
|
|
33
33
|
inchRouter,
|
|
34
34
|
integratorFeeAddress = ZeroAddress,
|
|
35
35
|
buyerContribution,
|
|
36
|
+
tokenApproval,
|
|
36
37
|
gasLimit,
|
|
37
38
|
gasPrice,
|
|
38
39
|
}: {
|
|
@@ -43,6 +44,7 @@ export const openPositionEvm = async (
|
|
|
43
44
|
inchRouter: string;
|
|
44
45
|
integratorFeeAddress?: string;
|
|
45
46
|
buyerContribution: BigNumberish;
|
|
47
|
+
tokenApproval: string;
|
|
46
48
|
gasLimit?: string | number;
|
|
47
49
|
gasPrice?: string | number;
|
|
48
50
|
}
|
|
@@ -71,6 +73,7 @@ export const openPositionEvm = async (
|
|
|
71
73
|
tokenHolder,
|
|
72
74
|
inchRouter,
|
|
73
75
|
integratorFeeAddress,
|
|
76
|
+
tokenApproval,
|
|
74
77
|
txOptions
|
|
75
78
|
);
|
|
76
79
|
};
|
|
@@ -93,6 +96,7 @@ export const closePositionEvm = async (
|
|
|
93
96
|
integratorFeeAddress = ZeroAddress,
|
|
94
97
|
gasLimit,
|
|
95
98
|
gasPrice,
|
|
99
|
+
tokenApproval,
|
|
96
100
|
}: {
|
|
97
101
|
loanId: BigNumberish;
|
|
98
102
|
sellingCode: string;
|
|
@@ -101,6 +105,7 @@ export const closePositionEvm = async (
|
|
|
101
105
|
integratorFeeAddress?: string;
|
|
102
106
|
gasLimit?: string | number;
|
|
103
107
|
gasPrice?: string | number;
|
|
108
|
+
tokenApproval: string;
|
|
104
109
|
}
|
|
105
110
|
): Promise<ContractTransaction> => {
|
|
106
111
|
const contract = new Contract(
|
|
@@ -120,6 +125,7 @@ export const closePositionEvm = async (
|
|
|
120
125
|
tokenHolder,
|
|
121
126
|
inchRouter,
|
|
122
127
|
integratorFeeAddress,
|
|
128
|
+
tokenApproval,
|
|
123
129
|
Object.keys(txOptions).length > 0 ? txOptions : {}
|
|
124
130
|
);
|
|
125
131
|
};
|
package/lending.ts
CHANGED
|
@@ -452,7 +452,6 @@ export async function createOffer(
|
|
|
452
452
|
...createNodeWalletInstruction,
|
|
453
453
|
instruction,
|
|
454
454
|
updateMaxExposureInstruction,
|
|
455
|
-
transferInstruction,
|
|
456
455
|
params.maxBorrow ? updateMaxBorrowInstruction : undefined,
|
|
457
456
|
computeFeeIx,
|
|
458
457
|
].filter(Boolean) as TransactionInstruction[],
|