File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ const FT_AURORA = 'd9c2d319cd7e6177336b0a9c93c21cb48d84fb54.factory.bridge.near'
9
9
async function tvl ( ) {
10
10
let spotFtCurrencies = ( await call ( SPOT_PROJECT_CONTRACT , GET_CURRENCIES_METHOD , { } ) )
11
11
. filter ( token => token [ 'address' ] !== NATIVE_NEAR )
12
- . map ( token => token [ 'address' ] ) ;
12
+ . map ( token => token [ 'address' ] )
13
+ . filter ( address => typeof address === 'string' && address . includes ( '.' ) ) ;
13
14
14
15
// NOTE: replace correct aurora token address for Near Protocol with incorrect but working
15
16
spotFtCurrencies [ 'aurora' ] = spotFtCurrencies [ FT_AURORA ] ;
@@ -24,11 +25,8 @@ async function tvl() {
24
25
return balances ;
25
26
}
26
27
27
-
28
28
module . exports = {
29
29
timetravel : false ,
30
- near : {
31
- tvl,
32
- } ,
30
+ near : { tvl } ,
33
31
methodology : 'Summed up all the tokens deposited into Spin DEX'
34
32
}
You can’t perform that action at this time.
0 commit comments