From db132cd9f58a0936dd8bcbcbd0477765f87af49d Mon Sep 17 00:00:00 2001 From: Winson Cheng <83229800+0xKMG@users.noreply.github.com> Date: Thu, 15 Aug 2024 12:14:03 +0800 Subject: [PATCH] add new strategies and a lending pool on Solana --- projects/vaultka/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/projects/vaultka/index.js b/projects/vaultka/index.js index 9aa974756c60..b314fd6ffe13 100644 --- a/projects/vaultka/index.js +++ b/projects/vaultka/index.js @@ -1,6 +1,7 @@ //import utils const ADDRESSES = require("../helper/coreAssets.json"); const { staking } = require("../helper/staking"); +const { getProvider, getTokenBalance, sumTokens2 } = require("../helper/solana"); // 19/12/2023 ALP Leverage Vault // 29/11/2023 GMXV2 Leverage(Neutral) Vault // 12/11/2023 GLP Compound Vault @@ -21,6 +22,25 @@ module.exports = { [1707385004, "GLM(basket of GMs)"], ], + solana: { + tvl: async (api) => { + const lendingSol = "DMhoXyVNpCFeCEfEjEQfS6gzAEcPUUSXM8Xnd2UXJfiS"; + const jupSol = "jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v"; + const jitoSol = "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"; + const jupSolProgram = "6j6Fwxf7UzfaXqQA2QraWGEAYUYzjjZP3t6ChzjzkmL9"; + const jitoSolProgram = "6MAnq2z4ww8nnvfd8sec4sRMhTEdsdZXB1FLgqaYsg4d"; + + return sumTokens2({ + owner: lendingSol, + tokensAndOwners: [ + [jupSol, jupSolProgram], + [jitoSol, jitoSolProgram], + ], + solOwners: [lendingSol], + }); + }, + }, + arbitrum: { tvl: async (api) => { const vaults = [