Skip to content
Closed
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
21 changes: 20 additions & 1 deletion projects/vaultedge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ const ADMIN_ADDRESSES = {
plasma: "0xe0a8d5d839f65Ef787E13C50D29d9Aa31353fa31",
};

const STABILITY_POOL = {
plasma: "0x537bAe42577595fEE200fC646a52D8b79B851c4A",
};

const USDVE_TOKEN = {
plasma: "0x0AE246586Ee3CaE3629A7bE512fE99bD95b7714D",
};

async function tvl(api) {
const adminContract = ADMIN_ADDRESSES[api.chain];
const stabilityPool = STABILITY_POOL[api.chain];
const usdveToken = USDVE_TOKEN[api.chain];

// Get collateral locked in Active Pool
const collAddresses = await api.call({
abi: "address[]:getValidCollateral",
target: adminContract,
Expand All @@ -19,11 +31,18 @@ async function tvl(api) {
tokens: collAddresses,
owner: activePool,
});

// Add USDVE locked in Stability Pool
await sumTokens2({
api,
tokens: [usdveToken],
owner: stabilityPool,
});
}

module.exports = {
methodology:
"Adds up the total value locked as collateral on the Vaultedge platform",
"TVL counts collateral locked in the Active Pool and USDVE deposited in the Stability Pool, which provides liquidity for liquidations.",
start: '2025-10-31', // Thursday, October 31, 2025
};

Expand Down
Loading