mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 05:15:28 +08:00
fix xtoken
This commit is contained in:
@@ -35,6 +35,7 @@ const {
|
||||
usdtAddress,
|
||||
xtkAddress
|
||||
} = require("./constants");
|
||||
const BigNumber = require('bignumber.js');
|
||||
const xu3lps = [
|
||||
xu3lpaAddr,
|
||||
xu3lpbAddr,
|
||||
@@ -180,6 +181,8 @@ async function tvl(timestamp, block) {
|
||||
xsnxaSusdRaw
|
||||
);
|
||||
|
||||
Object.keys(balances).forEach(key => balances[key] = BigNumber(balances[key]).toFixed(0))
|
||||
|
||||
let terminalMainnetTvl = await terminal.getData("mainnet");
|
||||
Object.keys(terminalMainnetTvl).forEach(token => sdk.util.sumSingleBalance(
|
||||
balances,
|
||||
|
||||
Reference in New Issue
Block a user