mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-05-12 19:29:32 +08:00
fix kamino
This commit is contained in:
@@ -34,4 +34,10 @@ module.exports = {
|
||||
return data
|
||||
},
|
||||
},
|
||||
kamino: {
|
||||
tvl: async () => {
|
||||
const { data } = await client.get('/kamino/tvl')
|
||||
return data
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -2,6 +2,7 @@ const { Kamino } = require('@kamino-finance/kliquidity-sdk')
|
||||
const { getConnection, } = require('../helper/solana')
|
||||
|
||||
async function tvl() {
|
||||
throw new Error('Using rpc proxy now')
|
||||
const kamino = new Kamino('mainnet-beta', getConnection());
|
||||
const shareData = await kamino.getStrategiesShareData({});
|
||||
return {
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
const { getExports } = require('../helper/heroku-api')
|
||||
|
||||
const { kamino } = require("../helper/chain/rpcProxy")
|
||||
|
||||
module.exports = {
|
||||
doublecounted: true,
|
||||
timetravel: false,
|
||||
misrepresentedTokens: true,
|
||||
...getExports("kamino", ['solana'])
|
||||
misrepresentedTokens: true,
|
||||
solana: { tvl }
|
||||
}
|
||||
|
||||
async function tvl(api) {
|
||||
api.addUSDValue(await kamino.tvl())
|
||||
}
|
||||
Reference in New Issue
Block a user