File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ const { getConnection, sumTokens } = require('../helper/solana');
3
3
const { Program } = require ( '@project-serum/anchor' ) ;
4
4
const kaminoIdl = require ( './kamino-lending-idl.json' ) ;
5
5
const { MintLayout } = require ( "../helper/utils/solana/layouts/mixed-layout" ) ;
6
+ const { getConfig } = require ( '../helper/cache' )
6
7
7
8
async function tvl ( ) {
8
9
const connection = getConnection ( ) ;
9
10
const programId = new PublicKey ( 'KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD' ) ;
10
- const markets = [ '7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF ', 'DxXdAyU3kCjnyggvHmY5nAwg5cRbbmdyX3npfDMjjMek' ] ;
11
+ const markets = ( await getConfig ( 'kamino-lending ', 'https://api.kamino.finance/v2/kamino-market' ) ) . map ( x => x . lendingMarket ) ;
11
12
const lendingMarketAuthSeed = 'lma' ;
12
13
const tokensAndOwners = [ ] ;
13
14
const ktokens = { } ;
You can’t perform that action at this time.
0 commit comments