Skip to content

Commit

Permalink
Blueberry update (#10104)
Browse files Browse the repository at this point in the history
* Update contract addresses

* comptroller -> unitroller
  • Loading branch information
Gornutz authored May 6, 2024
1 parent c7d9760 commit 2c83096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/blueberry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const abi = {
}
const sdk = require('@defillama/sdk');

const BANK = '0x9b06eA9Fbc912845DF1302FE1641BEF9639009F7';
const BANK = '0xa34F59F634d48E2c3606048f2367326c46a4B5fA';

async function tvl(timestamp, block, chainBlocks, {api}) {
const positionValues = await api.fetchList({ lengthAbi: abi.getNextPositionId, itemAbi: abi.getPositionValue, target: BANK})
Expand All @@ -15,7 +15,7 @@ async function tvl(timestamp, block, chainBlocks, {api}) {

module.exports = {
methodology: 'Gets the total value locked in the Blueberry Lending Market and Blueberry Earn',
ethereum: compoundExports2({ comptroller: '0xfFadB0bbA4379dFAbFB20CA6823F6EC439429ec2'}),
ethereum: compoundExports2({ comptroller: '0xcb0D9Ff5BDD34521c6f8CDbeAf15e1A76Fa4dd5D'}),
}

module.exports.ethereum.tvl = sdk.util.sumChainTvls([module.exports.ethereum.tvl, tvl])

0 comments on commit 2c83096

Please sign in to comment.