Skip to content

Commit

Permalink
Fix alchemix (#1327)
Browse files Browse the repository at this point in the history
* fix alchemix

* reset index 0 (was 1 for testing)
  • Loading branch information
0xpeluche authored Feb 29, 2024
1 parent 30b165b commit 23e91e6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/adapters/alchemix/common/transmuter-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,12 @@ export async function getTransmutationBalances(
const accountRes = accountsRes[idx]
const totalValueRes = totalValuesRes[idx]

if (!accountRes.success) {
continue
}
if (!accountRes.success) continue

const [debt, depositedTokens] = accountRes.output
const reactiveToken = depositedTokens[0].toLowerCase()
const [debt, [depositedTokens]] = accountRes.output
const reactiveToken = depositedTokens.toLowerCase()

if (!reactiveToken) {
continue
}
if (!reactiveToken) continue

const synthetic: Balance = {
...(borrow as Contract),
Expand Down

0 comments on commit 23e91e6

Please sign in to comment.