@cryptorubic/web3 0.2.10-id-1032.2 → 0.2.10-id-1032.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "0.2.10-id-1032.2",
3
+ "version": "0.2.10-id-1032.3",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "bignumber.js": "9.1.2",
7
- "@cryptorubic/core": "0.2.10-id-1032.2",
7
+ "@cryptorubic/core": "0.2.10-id-1032.3",
8
8
  "viem": "^2.19.1",
9
9
  "web3-utils": "^4.3.1",
10
10
  "@ton/ton": "^15.1.0",
11
11
  "@solana/web3.js": "1.95.3",
12
12
  "@solflare-wallet/utl-sdk": "^1.4.0",
13
13
  "@ethersproject/bignumber": "^5.7.0",
14
- "@cryptorubic/tron-types": "0.2.10-id-1032.2",
14
+ "@cryptorubic/tron-types": "0.2.10-id-1032.3",
15
15
  "bitcoin-address-validation": "^2.2.3",
16
16
  "axios": "0.27.2",
17
17
  "crc-32": "^1.2.2",
@@ -269,7 +269,8 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
269
269
  const res = await this.read(permit2Address, uni_v3_permit_abi_1.UNI_V3_PERMIT_2_ABI, 'allowance', [walletAddress, token.address, spenderAddress]);
270
270
  this.logger?.customLog('PERMI2_ALLOWANCE_CHECK:', res);
271
271
  const [amount, expiration, _nonce] = res;
272
- return (token.weiAmount.gt(amount) || new bignumber_js_1.default(Date.now()).gt(expiration));
272
+ return (token.weiAmount.gt(amount) ||
273
+ new bignumber_js_1.default(Date.now()).gt(expiration * 1000));
273
274
  }
274
275
  encodePermit2Approve(tokenAddress, spenderAddress, permit2Address, expiration, amount) {
275
276
  const tx = EvmAdapter.encodeMethodCall(permit2Address, uni_v3_permit_abi_1.UNI_V3_PERMIT_2_ABI, 'approve', [tokenAddress, spenderAddress, amount, expiration]);