@@ -252,7 +252,7 @@ window.createWeb3 = async function createWeb3(connectionProvider) {
252
252
web3 . currentProvider . setMaxListeners && window . web3 . currentProvider . setMaxListeners ( 0 ) ;
253
253
web3 . eth . transactionBlockTimeout = 999999999 ;
254
254
web3 . eth . transactionPollingTimeout = new Date ( ) . getTime ( ) ;
255
- web3 . startBlock = ( typeof connectionProvider ) . toLowerCase ( ) !== 'string' && window . ethereum && window . ethereum . isMetaMask ? await window . timeoutCall ( async call => call ( await web3 . eth . getBlockNumber ( ) ) ) : await web3 . eth . getBlockNumber ( ) ;
255
+ web3 . startBlock = parseInt ( ( typeof connectionProvider ) . toLowerCase ( ) !== 'string' && window . ethereum && window . ethereum . isMetaMask ? await window . timeoutCall ( async call => call ( await web3 . eth . getBlockNumber ( ) ) ) : await web3 . eth . getBlockNumber ( ) ) - 100 ;
256
256
return web3 ;
257
257
} ;
258
258
@@ -1842,7 +1842,7 @@ window.loadStakingData = async function loadStakingData(element, only) {
1842
1842
promises . push ( window . setStakingManagerData ( element , stakingManager , blockTiers , active , only ) ) ;
1843
1843
} else {
1844
1844
var stakingManager = window . newContract ( window . context . LiquidityMiningContractABI , liquidityMiningContractAddress ) ;
1845
- promises . push ( window . setNewLiquidityMiningManagerData ( element , stakingManager , blockTiers , active , only ) ) ;
1845
+ promises . push ( window . setNewFarmingManagerData ( element , stakingManager , blockTiers , active , only ) ) ;
1846
1846
}
1847
1847
}
1848
1848
stakingData = ( await Promise . allSettled ( promises ) ) . filter ( it => it !== undefined && it !== null && it . value !== undefined && it . value !== null ) . map ( it => it . value || it ) ;
@@ -1907,7 +1907,7 @@ window.setStakingManagerData = async function setStakingManagerData(element, sta
1907
1907
return stakingManagerData ;
1908
1908
} ;
1909
1909
1910
- window . setNewLiquidityMiningManagerData = async function setNewLiquidityMiningManagerData ( element , stakingManager , blockTiers , active , only ) {
1910
+ window . setNewFarmingManagerData = async function setNewFarmingManagerData ( element , stakingManager , blockTiers , active , only ) {
1911
1911
var stakingManagerData = {
1912
1912
stakingManager,
1913
1913
active,
0 commit comments