rubic-sdk 4.4.0-alpha-arb-rbc.1 → 4.4.0-alpha-arb-rbc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -223585,14 +223585,8 @@ class CrossChainTrade {
223585
223585
  if (this.from.isNative) {
223586
223586
  return false;
223587
223587
  }
223588
- try {
223589
- const allowance = await this.fromWeb3Public.getAllowance(this.from.address, this.walletAddress, this.fromContractAddress);
223590
- return this.from.weiAmount.gt(allowance);
223591
- }
223592
- catch (err) {
223593
- console.error(err);
223594
- return false;
223595
- }
223588
+ const allowance = await this.fromWeb3Public.getAllowance(this.from.address, this.walletAddress, this.fromContractAddress);
223589
+ return this.from.weiAmount.gt(allowance);
223596
223590
  }
223597
223591
  async checkTradeErrors() {
223598
223592
  this.checkWalletConnected();