Skip to content

Commit

Permalink
Merge branch 'DefiLlama:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x authored Mar 29, 2022
2 parents 3c23979 + 574ee17 commit 18797cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions projects/burrow.cash/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const { call, addTokenBalances, } = require('../helper/near')

const BURROW_BETA_CONTRACT = 'contract.beta.burrow.near'
const BURROW_CONTRACT = 'contract.main.burrow.near'

async function tvl() {
const balances = {}

const assetsCallResponse = await call(BURROW_BETA_CONTRACT, 'get_assets_paged', {})
const assetsCallResponse = await call(BURROW_CONTRACT, 'get_assets_paged', {})
const assets = assetsCallResponse
.map(([asset]) => asset)
.filter(asset => !/\.burrow\./.test(asset)) // Ignore all assets that can be considered native tokens
await addTokenBalances(assets, BURROW_BETA_CONTRACT, balances)
await addTokenBalances(assets, BURROW_CONTRACT, balances)
return balances
}

Expand All @@ -19,5 +19,5 @@ module.exports = {
tvl,
},
misrepresentedTokens: true,
methodology: 'Summed up all the tokens deposited in their beta lending contract'
};
methodology: 'Summed up all the tokens deposited in their main lending contract'
};

0 comments on commit 18797cb

Please sign in to comment.