File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ import { SafeService } from "../base/safe-service/safe.service";
3737import { gasPriceToString } from "../base/provider" ;
3838
3939const kMaxWithdrawTransferCount = 16 ;
40- export const kMaxWithdrawTransferAmount : bigint = BigInt (
41- "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
42- ) ;
40+ export const kMaxWithdrawTransferAmount : number = Number . MAX_VALUE ;
4341
4442export class ChainInfo {
4543 chainName : string ;
@@ -920,13 +918,11 @@ export class RelayerService implements OnModuleInit {
920918 }
921919 let amountThreshold = kMaxWithdrawTransferAmount ;
922920 if ( lnProvider . withdrawLiquidityAmountThreshold ) {
923- amountThreshold = BigInt (
924- lnProvider . withdrawLiquidityAmountThreshold
925- ) ;
921+ amountThreshold = lnProvider . withdrawLiquidityAmountThreshold
926922 }
927923 if (
928924 filterTransferIds . length >= countThreshold ||
929- totalAmount >= amountThreshold
925+ Number ( totalAmount ) / Number ( new Any ( 1 , srcDecimals ) . Number ) >= amountThreshold
930926 ) {
931927 // token transfer direction fromChain -> toChain
932928 // withdrawLiquidity message direction toChain -> fromChain
You can’t perform that action at this time.
0 commit comments