Skip to content

Commit

Permalink
add vett
Browse files Browse the repository at this point in the history
  • Loading branch information
szul-07 committed Apr 13, 2023
1 parent d41a3b1 commit c8109b3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/vett/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const sdk = require("@defillama/sdk");
// const ethers = require("ethers");

async function tvl(_timestamp, _b, { thundercore: block }) {
const { output: ttBalances } = await sdk.api.eth.getBalances({
targets: ["0xC3C857a9E5Be042C8acF4F2827Aa053e93b5d039"],
chain: "thundercore",
block,
});
const ttTvl = ttBalances[0].balance;
return {
"thunder-token": ttTvl / 1e18,
};
}

module.exports = {
timetravel: true,
methodology: "calculate the total amount of TT locked in the veTT contract",
thundercore: {
tvl,
},
};

0 comments on commit c8109b3

Please sign in to comment.