Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mantasfam committed Sep 3, 2024
1 parent 9d9410a commit c4c3b91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/factory/providers/aurora/synapse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import util from '../../../../util/blockchainUtil';
import formatter from '../../../../util/formatter';
import { ITvlParams, ITvlReturn } from '../../../../interfaces/ITvl';

const START_BLOCK = 56525135;
const POOL = '0xcEf6C2e20898C2604886b888552CA6CcF66933B0';
const TOKENS = [
'0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
Expand All @@ -11,8 +12,8 @@ const TOKENS = [
async function tvl(params: ITvlParams): Promise<Partial<ITvlReturn>> {
const { block, chain, provider, web3 } = params;

if (block < 56525135) {
return {};
if (block < START_BLOCK) {
return { balances: {} };
}

const tokenBalances = await util.getTokenBalances(
Expand Down

0 comments on commit c4c3b91

Please sign in to comment.