Skip to content

Commit 8f6f755

Browse files
authored
Fix: Spin_Spot (DefiLlama#14304)
1 parent 5a9ff99 commit 8f6f755

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

projects/spin/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const FT_AURORA = 'd9c2d319cd7e6177336b0a9c93c21cb48d84fb54.factory.bridge.near'
99
async function tvl() {
1010
let spotFtCurrencies = (await call(SPOT_PROJECT_CONTRACT, GET_CURRENCIES_METHOD, {}))
1111
.filter(token => token['address'] !== NATIVE_NEAR)
12-
.map(token => token['address']);
12+
.map(token => token['address'])
13+
.filter(address => typeof address === 'string' && address.includes('.'));
1314

1415
// NOTE: replace correct aurora token address for Near Protocol with incorrect but working
1516
spotFtCurrencies['aurora'] = spotFtCurrencies[FT_AURORA];
@@ -24,11 +25,8 @@ async function tvl() {
2425
return balances;
2526
}
2627

27-
2828
module.exports = {
2929
timetravel: false,
30-
near: {
31-
tvl,
32-
},
30+
near: { tvl },
3331
methodology: 'Summed up all the tokens deposited into Spin DEX'
3432
}

0 commit comments

Comments
 (0)