diff --git a/package.json b/package.json index 9244276..cfbad59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.17", + "version": "0.22.18", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/config/chains.json b/src/config/chains.json index 4a3f0e9..0ee1874 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -5,7 +5,7 @@ "label": "Ethereum", "shortName": "ETH", "code": "eth", - "rpc": "https://trade.orion.xyz/eth-mainnet/rpc", + "rpc": "https://ethereum-rpc.publicnode.com", "baseCurrencyName": "ETH", "contracts": { "WETH": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", diff --git a/src/crypt/signOrder.ts b/src/crypt/signOrder.ts index 0187764..fca41a7 100644 --- a/src/crypt/signOrder.ts +++ b/src/crypt/signOrder.ts @@ -8,7 +8,7 @@ import normalizeNumber from '../utils/normalizeNumber.js'; import getDomainData from './getDomainData.js'; import hashOrder from './hashOrder.js'; -const DEFAULT_EXPIRATION = 365 * 24 * 60 * 60 * 1000; // 365 days +const DEFAULT_EXPIRATION = 29 * 24 * 60 * 60 * 1000; // 29 days type SignerWithTypedDataSign = ethers.Signer & TypedDataSigner;