@@ -18,7 +18,7 @@ import {
1818 Deposit ,
1919 DepositWithBlock ,
2020} from "../../interfaces" ;
21- import { AcrossConfigStoreClient , SpokePoolClient } from ".." ;
21+ import { AcrossConfigStoreClient , HubPoolClient , SpokePoolClient } from ".." ;
2222import {
2323 BigNumber ,
2424 bnZero ,
@@ -91,7 +91,7 @@ function updateBundleFillsV3(
9191 lpFeePct : BigNumber ,
9292 repaymentChainId : number ,
9393 repaymentToken : string ,
94- repaymentAddress : string
94+ repaymentAddress : string ,
9595) : void {
9696 // We shouldn't pass any unrepayable fills into this function, so we perform an extra safety check.
9797 assert (
@@ -355,11 +355,7 @@ export class BundleDataClient {
355355 fill ,
356356 this . spokePoolClients [ fill . destinationChainId ] . spokePool . provider ,
357357 matchingDeposit ,
358- // @dev : to get valid repayment chain ID's, get all chain IDs for the bundle block range and remove
359- // disabled block ranges.
360- this . clients . configStoreClient
361- . getChainIdIndicesForBlock ( blockRanges [ 0 ] [ 1 ] )
362- . filter ( ( _chainId , i ) => ! isChainDisabled ( blockRanges [ i ] ) )
358+ this . clients . hubPoolClient ,
363359 ) ;
364360 if ( ! isDefined ( validRepayment ) ) {
365361 return false ;
@@ -919,7 +915,7 @@ export class BundleDataClient {
919915 fill ,
920916 destinationClient . spokePool . provider ,
921917 v3RelayHashes [ relayDataHash ] . deposits ! [ 0 ] ,
922- allChainIds
918+ this . clients . hubPoolClient ,
923919 ) ;
924920 if ( ! isDefined ( fillToRefund ) ) {
925921 bundleUnrepayableFillsV3 . push ( fill ) ;
@@ -1013,7 +1009,7 @@ export class BundleDataClient {
10131009 fill ,
10141010 destinationClient . spokePool . provider ,
10151011 matchedDeposit ,
1016- allChainIds
1012+ this . clients . hubPoolClient ,
10171013 ) ;
10181014 if ( ! isDefined ( fillToRefund ) ) {
10191015 bundleUnrepayableFillsV3 . push ( fill ) ;
@@ -1187,7 +1183,7 @@ export class BundleDataClient {
11871183 fill ,
11881184 destinationClient . spokePool . provider ,
11891185 v3RelayHashes [ relayDataHash ] . deposits ! [ 0 ] ,
1190- allChainIds
1186+ this . clients . hubPoolClient ,
11911187 ) ;
11921188 if ( ! isDefined ( fillToRefund ) ) {
11931189 bundleUnrepayableFillsV3 . push ( fill ) ;
@@ -1241,7 +1237,7 @@ export class BundleDataClient {
12411237 prefill ! ,
12421238 destinationClient . spokePool . provider ,
12431239 deposit ,
1244- allChainIds
1240+ this . clients . hubPoolClient ,
12451241 ) ;
12461242 if ( ! isDefined ( verifiedFill ) ) {
12471243 bundleUnrepayableFillsV3 . push ( prefill ! ) ;
@@ -1415,7 +1411,16 @@ export class BundleDataClient {
14151411 chainIds ,
14161412 associatedDeposit ! . fromLiteChain
14171413 ) ;
1418- updateBundleFillsV3 ( bundleFillsV3 , fill , realizedLpFeePct , chainToSendRefundTo , repaymentToken , fill . relayer ) ;
1414+ updateBundleFillsV3 (
1415+ bundleFillsV3 ,
1416+ fill ,
1417+ realizedLpFeePct ,
1418+ chainToSendRefundTo ,
1419+ repaymentToken ,
1420+ fill . relayer ,
1421+ this . clients . hubPoolClient ,
1422+ associatedDeposit . quoteBlockNumber
1423+ ) ;
14191424 } ) ;
14201425 v3SlowFillLpFees . forEach ( ( { realizedLpFeePct : lpFeePct } , idx ) => {
14211426 const deposit = validatedBundleSlowFills [ idx ] ;
0 commit comments