From 07b5574fd1a9b2d75377a98a3d60414848a6ee64 Mon Sep 17 00:00:00 2001 From: romulonissola Date: Sun, 27 Apr 2025 20:29:13 +0100 Subject: [PATCH 1/2] Added Sentinel Trader Bot Project --- projects/sentinel-trader-bot/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 projects/sentinel-trader-bot/index.js diff --git a/projects/sentinel-trader-bot/index.js b/projects/sentinel-trader-bot/index.js new file mode 100644 index 0000000000..461067a73c --- /dev/null +++ b/projects/sentinel-trader-bot/index.js @@ -0,0 +1,18 @@ +const { PublicKey } = require("@solana/web3.js"); +const { getConnection, decodeAccount, } = require("../helper/solana"); + +async function tvl() { + const connection = getConnection() + const mint = await connection.getAccountInfo(new PublicKey('GVeaBeaHZDJHji4UTzaPJgB1PRiVeCV2EaArjYyiwNdT')); + const mintInfo = decodeAccount('mint', mint) + return { + 'SENTBOT': mintInfo.supply.toString() / (10 ** mintInfo.decimals) + }; +} + +module.exports = { + timetravel: false, + solana: { + tvl, + }, +} \ No newline at end of file From daf62a689cbf78873d5b7eedf65741876e712db5 Mon Sep 17 00:00:00 2001 From: romulonissola Date: Thu, 1 May 2025 14:23:17 +0100 Subject: [PATCH 2/2] Updating TVL for sentinel trader bot --- projects/sentinel-trader-bot/index.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/projects/sentinel-trader-bot/index.js b/projects/sentinel-trader-bot/index.js index 461067a73c..772baa538f 100644 --- a/projects/sentinel-trader-bot/index.js +++ b/projects/sentinel-trader-bot/index.js @@ -1,18 +1,14 @@ -const { PublicKey } = require("@solana/web3.js"); -const { getConnection, decodeAccount, } = require("../helper/solana"); +const { sumTokens2 } = require('../helper/solana'); async function tvl() { - const connection = getConnection() - const mint = await connection.getAccountInfo(new PublicKey('GVeaBeaHZDJHji4UTzaPJgB1PRiVeCV2EaArjYyiwNdT')); - const mintInfo = decodeAccount('mint', mint) - return { - 'SENTBOT': mintInfo.supply.toString() / (10 ** mintInfo.decimals) - }; + var test = await sumTokens2({ solOwners: ['FiPhWKk6o16WP9Doe5mPBTxaBFXxdxRAW9BmodPyo9UK'] }); + console.log(await test); + return test; } module.exports = { timetravel: false, - solana: { - tvl, - }, -} \ No newline at end of file + methodology: + "Sentinel Trader Bot TVL is calculated by retrieving the SOL balance of the SENTBOT mint authority (or treasury) wallet", + solana: { tvl }, +}; \ No newline at end of file