add lst file (#16970)

Co-authored-by: naturexie <786281870@qq.com>
This commit is contained in:
xieqiancaosissi
2025-11-11 19:38:39 +08:00
committed by GitHub
parent 6ee9784df4
commit 709622e503
2 changed files with 20 additions and 1 deletions

View File

@@ -1,7 +1,6 @@
const { default: BigNumber } = require('bignumber.js')
const { call, sumSingleBalance, } = require('./helper/chain/near')
const PROJECT_CONTRACT = 'v2.ref-finance.near'
const PROJECT_DCL_CONTRACT = 'dclv2.ref-labs.near'

20
projects/rhealst.js Normal file
View File

@@ -0,0 +1,20 @@
const { call, sumSingleBalance, } = require('./helper/chain/near')
const PROJECT_LST_CONTRACT = "lst.rhealab.near";
async function tvl() {
const balances = {}
const lstSummary = await call(PROJECT_LST_CONTRACT, 'get_summary', {});
sumSingleBalance(balances, 'wrap.near', lstSummary.total_staked_near_amount);
return balances
}
module.exports = {
near: {
tvl,
},
hallmarks: [
[1666648800,"DCB withdrawn liquidity"]
],
};