Skip to content

Commit

Permalink
zero address issue was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonmezturk committed Sep 22, 2023
1 parent a6c0512 commit 098c888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factory/providers/arbitrum/posttech/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ITvlParams, ITvlReturn } from '../../../../interfaces/ITvl';
import formatter from '../../../../util/formatter';
import util from '../../../../util/blockchainUtil';

const POST_TECH = '0x87da6930626fe0c7db8bc15587ec0e410937e5dc';
const START_BLOCK = 126045171;
const WETH_ADDRESS = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2';

async function tvl(params: ITvlParams): Promise<Partial<ITvlReturn>> {
const { block, chain, provider, web3 } = params;
Expand All @@ -12,7 +12,7 @@ async function tvl(params: ITvlParams): Promise<Partial<ITvlReturn>> {
}

const balances = {
[WETH_ADDRESS]: await web3.eth.getBalance(POST_TECH, block),
[util.ZERO_ADDRESS]: await web3.eth.getBalance(POST_TECH, block),
};

formatter.convertBalancesToFixed(balances);
Expand Down

0 comments on commit 098c888

Please sign in to comment.