Skip to content

Commit

Permalink
Merge pull request #64 from Jeff-CCH/fix/compound-v3
Browse files Browse the repository at this point in the history
fix: compound v3 withdraw collateral token list
  • Loading branch information
Jeff-CCH authored Jun 3, 2024
2 parents 24b3e09 + fa1c23e commit 334844f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fair-pants-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@protocolink/logics': patch
---

fix compound v3 withdraw collateral token list
2 changes: 1 addition & 1 deletion src/logics/compound-v3/logic.withdraw-collateral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class WithdrawCollateralLogic
const markets = getMarkets(this.chainId);
for (const market of markets) {
const collaterals = await service.getCollaterals(market.id);
tokenList[market.id] = collaterals.map((collateral) => collateral.wrapped);
tokenList[market.id] = collaterals;
}

return tokenList;
Expand Down

0 comments on commit 334844f

Please sign in to comment.