Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@1inch/limit-order-protocol-contract
Advanced tools
The master
branch contains the latest work-in-progress version of limit orders. It hasn't been audited and may contain severe security issues or may not work at all.
Please, use the commit tagged version to get the latest production version that has passed through a series of security audits:
4.0.0
Limit order protocol v4 / security audits3.0.1
Limit order protocol v3 / security auditsv2
- Limit order protocol v2 / security auditsYou can find the latest general overview and documentation on the 1inch limit orders protocol in the description.md. Documentation for this and previous versions can be found on the 1inch documentation portal.
The repository contains smart contracts for EVM-based blockchains (such as Ethereum, Binance Smart Chain, etc.). These contracts are a core part of the 1inch limit order protocol, allowing users to create limit orders off-chain that can be filled on-chain. A limit order is a data structure signed according to EIP-712.
The key features of the protocol are extreme flexibility and high gas efficiency, which are achieved with the following features
Basic features
Advanced features
IERC20
, allowing the swapping of non-ERC20 tokens, such as ERC721 or ERC1155.Separate RFQ order are deprecated in v4. To create the most gas efficient order use a basic order without extensions.
You can find 1inch Router v6 and 1inch Limit Order protocol v4 deployments here:
Ethereum mainnet: 0x111111125421ca6dc452d289314280a0f8842a65
BSC mainnet: 0x111111125421ca6dc452d289314280a0f8842a65
Polygon mainnet: 0x111111125421ca6dc452d289314280a0f8842a65
Optimism Mainnet: 0x111111125421ca6dc452d289314280a0f8842a65
Arbitrum One: 0x111111125421ca6dc452d289314280a0f8842a65
Gnosis Chain: 0x111111125421ca6dc452d289314280a0f8842a65
Avalanche: 0x111111125421ca6dc452d289314280a0f8842a65
Fantom: 0x111111125421ca6dc452d289314280a0f8842a65
Aurora: 0x111111125421ca6dc452d289314280a0f8842a65
Kaia: 0x111111125421ca6dc452d289314280a0f8842a65
Base: 0x111111125421ca6dc452d289314280a0f8842a65
zkSync Era: 0x6fd4383cb451173d5f9304f041c7bcbf27d561ff
You can find audit reports on etherscan and in the separate audit repository.
Plenty of utils that helps create & sign orders are available in our typescript utils library:
FAQs
1inch Limit Order Protocol
We found that @1inch/limit-order-protocol-contract demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.