UNPKG

@f5i23q999d/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

21 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GAS_LIMIT_DEFAULT = exports.SIGN_SCHEME_MAP = exports.ETH_FLOW_DEFAULT_SLIPPAGE_BPS = exports.DEFAULT_SLIPPAGE_BPS = exports.DEFAULT_QUOTE_VALIDITY = void 0; const order_book_1 = require("../order-book/index.js"); const chains_1 = require("../chains/index.js"); exports.DEFAULT_QUOTE_VALIDITY = 60 * 30; // 30 min exports.DEFAULT_SLIPPAGE_BPS = 50; // 0.5% exports.ETH_FLOW_DEFAULT_SLIPPAGE_BPS = { [chains_1.SupportedChainId.MAINNET]: 200, [chains_1.SupportedChainId.ARBITRUM_ONE]: 50, [chains_1.SupportedChainId.BASE]: 50, [chains_1.SupportedChainId.GNOSIS_CHAIN]: 50, [chains_1.SupportedChainId.SEPOLIA]: 50, // 0.5%, }; exports.SIGN_SCHEME_MAP = { [order_book_1.EcdsaSigningScheme.EIP712]: order_book_1.SigningScheme.EIP712, [order_book_1.EcdsaSigningScheme.ETHSIGN]: order_book_1.SigningScheme.ETHSIGN, }; // Use a 150K gas as a fallback if there's issue calculating the gas estimation (fixes some issues with some nodes failing to calculate gas costs for SC wallets) exports.GAS_LIMIT_DEFAULT = BigInt(150000); //# sourceMappingURL=consts.js.map