Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new strategies and a lending pool on Solana #11304

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions projects/vaultka/index.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 = [
Expand Down
Loading