Skip to content

Commit

Permalink
update: fix collateral swap and refine leverage response
Browse files Browse the repository at this point in the history
  • Loading branch information
weizard committed Dec 15, 2023
1 parent 023bdc0 commit 744cfd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/lending/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,12 @@ export class Adapter extends common.Web3Toolkit {
srcToken: srcToken,
srcAmount: srcAmount,
destToken: destToken,
<<<<<<< Updated upstream
// TODO: check which one is right
destAmount: swapQuotation.output.amount, //withdrawLogic.fields.output.amount,
=======
destAmount: swapQuotation.output.amount,
>>>>>>> Stashed changes
portfolio,
afterPortfolio,
},
Expand Down Expand Up @@ -455,6 +459,8 @@ export class Adapter extends common.Web3Toolkit {
fields: {
srcToken,
srcAmount,
destToken,
destAmount: borrowTokenAmount.amount,
portfolio,
afterPortfolio,
},
Expand Down Expand Up @@ -567,6 +573,8 @@ export class Adapter extends common.Web3Toolkit {
fields: {
srcToken,
srcAmount,
destToken,
destAmount: supplyLogic.fields.input.amount,
portfolio,
afterPortfolio,
},
Expand Down

0 comments on commit 744cfd6

Please sign in to comment.