From 7587fa1c08b1fc5a765b779492115a6bb5cdf534 Mon Sep 17 00:00:00 2001 From: Jon Greenwood <81202085+0xJonHoldsCrypto@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:10:36 -0500 Subject: [PATCH 1/2] Add Hemi Sushi Implementation Added Hemi Network Sushi Implementation --- projects/thedeep/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/thedeep/index.js b/projects/thedeep/index.js index 02beceb646..c12513005c 100644 --- a/projects/thedeep/index.js +++ b/projects/thedeep/index.js @@ -36,6 +36,11 @@ const config = { { factory: '0x9176B8Eb7Fdff309BE258F2F2eDB32a8b79f19B5', fromBlock: 4739302, }, // Sushi ] }, + hemi: { + vaultConfigs:[ + { factory: '0x5541Bcd3d163326CF12267D1cF6207dbde788348', fromBlock: 2624151, }, // Sushi + ] + }, } Object.keys(config).forEach(chain => { From 7002aee1014c9dc00ccf6dc5a858070ee0bddfe4 Mon Sep 17 00:00:00 2001 From: Jon Greenwood <81202085+0xJonHoldsCrypto@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:13:16 -0500 Subject: [PATCH 2/2] Add veHEMI --- projects/hemi-locked/index.js | 18 ++++++++++++++++++ projects/hemi-locking/index.js | 26 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 projects/hemi-locked/index.js create mode 100644 projects/hemi-locking/index.js diff --git a/projects/hemi-locked/index.js b/projects/hemi-locked/index.js new file mode 100644 index 0000000000..118b597f39 --- /dev/null +++ b/projects/hemi-locked/index.js @@ -0,0 +1,18 @@ +const { sumTokens2 } = require("../helper/unwrapLPs"); + +module.exports = { + ethereum: { + tvl: (api) => + sumTokens2({ + api, + owners: [ + "0x5eaa10F99e7e6D177eF9F74E519E319aa49f191e", + "0x39a0005415256B9863aFE2d55Edcf75ECc3A4D7e", + ], + fetchCoValentTokens: true, + blacklistedTokens: [ + '0xeb964a1a6fab73b8c72a0d15c7337fa4804f484d', // project HEMI token + ], + }), + }, +}; diff --git a/projects/hemi-locking/index.js b/projects/hemi-locking/index.js new file mode 100644 index 0000000000..203fa274a7 --- /dev/null +++ b/projects/hemi-locking/index.js @@ -0,0 +1,26 @@ +const { sumTokens2 } = require('@defillama/sdk/build/generalUtil') + + +const CHAIN = 'hemi' +const HEMI_TOKEN = '0x99e3dE3817F6081B2568208337ef83295b7f591D' +const VE_ESCROW = '0x371d3718D5b7F75EAb050FAe6Da7DF3092031c89' + +async function staking(_timestamp, _ethBlock, _chainBlocks, { api }) { + // Sum the HEMI balance(s) custodied by the ve escrow + return sumTokens2({ + api, + owner: VE_ESCROW, + tokens: [HEMI_TOKEN], + }) +} + +module.exports = { + methodology: + "Staking TVL = amount of HEMI locked in veHEMI (VotingEscrow). We sum the escrow’s HEMI balance.", + misrepresentedTokens: false, + timetravel: true, + hallmarks: [ + // [unixTimestamp, "Event description"], + ], + [CHAIN]: { staking }, +} \ No newline at end of file