Skip to content

Commit c5e5ea4

Browse files
authored
tzbtc tezfin (DefiLlama#15193)
1 parent 73ea551 commit c5e5ea4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

projects/helper/coreAssets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@
968968
"uUSD": "KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW",
969969
"YOU": "KT1Xobej4mc6XgEjDoJoHtTKgbD1ELMvcQuL",
970970
"USDS": "KT1REEb5VxWRjcHm5GzDMwErMmNFftsE5Gpf",
971-
"tzBTC": "KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn",
971+
"tzBTC": "KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn-0",
972972
"BUSD": "KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY-7",
973973
"DAI": "KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY-6",
974974
"PAUL": "KT19DUSZw7mfeEATrbWVPHRrWNVbNnmfFAE6",

projects/tezfin/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ async function borrowed() {
3434
for (const { address, decimals } of markets) {
3535
const storage = await getStorage(address);
3636
let borrows = Number(storage.totalBorrows || 0);
37-
let tokenAddress = storage.fa1_2_TokenAddress || storage.fa2_TokenAddress || "tezos";
37+
38+
let tokenAddress = storage.fa1_2_TokenAddress ? `${storage.fa1_2_TokenAddress}-0` : storage.fa2_TokenAddress ? `${storage.fa2_TokenAddress}-${storage.tokenId}` : "tezos";
3839

3940
borrows = borrows / 10 ** decimals;
4041

0 commit comments

Comments
 (0)