diff --git a/src/config.ts b/src/config.ts index e0d74a3..bd5ed3b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -62,7 +62,7 @@ export const bridgeTestChains = [ blockChunks: 1000, chainType: "scrt", chainId: "secret-4", - contractAddress: "secret1ym9jslryg6r8nlch2036py92gd50vejznwhuvx", + contractAddress: "secret13kgatwt6cachvy2v9n7lkkwewq9qhvphynuns3", decimals: 6, intialFund: "5000000", lastBlock: 16833475, @@ -118,17 +118,17 @@ export const bridgeTestChains = [ theGraphApiUrl: "https://api.studio.thegraph.com/query/89122/near-xp/version/latest", }, - { - chain: "BLAST", - rpcURL: "https://blast-sepolia.blockpi.network/v1/rpc/public", - nativeCoinSymbol: "ETH", - intialFund: "50000000000000000", - contractAddress: "0x2Aa8Dbb7543754d70B5A40D52cB81c2a0bB08B83", - chainType: "evm", - lastBlock: 11980723, - decimals: 18, - blockChunks: 1000, - }, + // { + // chain: "BLAST", + // rpcURL: "https://blast-sepolia.blockpi.network/v1/rpc/public", + // nativeCoinSymbol: "ETH", + // intialFund: "50000000000000000", + // contractAddress: "0x2Aa8Dbb7543754d70B5A40D52cB81c2a0bB08B83", + // chainType: "evm", + // lastBlock: 11980723, + // decimals: 18, + // blockChunks: 1000, + // }, { chain: "APTOS", chainType: "aptos", diff --git a/src/handler/chains/evm/utils/listenForStakingEvents.ts b/src/handler/chains/evm/utils/listenForStakingEvents.ts index 3326ec4..5654175 100644 --- a/src/handler/chains/evm/utils/listenForStakingEvents.ts +++ b/src/handler/chains/evm/utils/listenForStakingEvents.ts @@ -59,6 +59,9 @@ const listenForStakingEvents = ( logger.info(`Processing TX at: ${log.transactionHash}`); const decoded = stakerInt.parseLog(log); const receipt = await log.getTransactionReceipt(); + const erc = ERC20Staking__factory.connect(staker, provider); + const balance = await erc.stakingBalances(receipt.from); + if (balance <= 0) continue; if (!decoded) continue; await cb( builder.staked(