@haven-fi/solauto-sdk 1.0.641 → 1.0.642

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.
@@ -129,7 +129,7 @@ class RebalanceSwapManager {
129
129
  }
130
130
  this.swapParams = {
131
131
  ...swapInput,
132
- destinationWallet: flashLoanRepayFromDebt
132
+ destinationWallet: exactOut
133
133
  ? (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.client.signer.publicKey)
134
134
  : this.client.pos.publicKey,
135
135
  slippageIncFactor: 0.2 + attemptNum * 0.25,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.641",
3
+ "version": "1.0.642",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -253,6 +253,7 @@ export class MarginfiFlProvider extends FlProviderBase {
253
253
  );
254
254
  const iMfiAccount = this.iMfiAccount(flashLoan.liquiditySource)!;
255
255
 
256
+ consoleLog(bank.publicKey.toString(), associatedBankAccs);
256
257
  return transactionBuilder()
257
258
  .add(
258
259
  lendingAccountStartFlashloan(this.umi, {
@@ -197,7 +197,7 @@ export class RebalanceSwapManager {
197
197
 
198
198
  this.swapParams = {
199
199
  ...swapInput,
200
- destinationWallet: flashLoanRepayFromDebt
200
+ destinationWallet: exactOut
201
201
  ? toWeb3JsPublicKey(this.client.signer.publicKey)
202
202
  : this.client.pos.publicKey,
203
203
  slippageIncFactor: 0.2 + attemptNum * 0.25,