Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@1inch/limit-order-protocol
Advanced tools
This is the package of utilities for working with the 1inch Limit Orders Protocol
You can find general overview and docs on 1inch limit orders protocol here.
0x119c71d3bbac22029622cbaec24854d3d32d2828
0x1e38eff998df9d3669e32f4ff400031385bf6362
0x94bc2a1c732bcad7343b25af48385fe76e08734f
0x11431a89893025d2a48dca4eddc396f8c8117187
0x7f069df72b7a39bce9806e3afaf579e54d8cf2b9
Statements | Branches | Functions | Lines |
---|---|---|---|
npm install @1inch/limit-order-protocol
yarn add @1inch/limit-order-protocol
See CONTRIBUTING.md
See CHANGELOG.md
Contract allows users to place limit orders, that later could be filled on-chain. Limit order itself is a data structure created off-chain and signed according to EIP-712.
Most probably you would need use following classes:
LimitOrderBuilder - to create a limit order
LimitOrderPredicateBuilder - to create a predicate for limit order
LimitOrderProtocolFacade - to interact with the protocol on the blockchain
Key features of the protocol is extreme flexibility and high gas efficiency that achieved by using following order types.
A limit order is a financial instrument with which you can put up an ERC-20 token for sale at a fixed price.
For example, you can put up for sale 2 WBTC tokens at the price of 82415 DAI tokens.
1inch limit orders protocol has many tools for flexible trade management:
Note: You can create a limit order even if your balance is insufficient to execute the limit order right now. However you must have an allowance for the maker asset.
For market making, there are RFQ orders that have special optimization that does not require a large amount of gas for execution.
1inch aggregation protocol - the protocol sources liquidity from various exchanges and is capable of splitting a single trade transaction across multiple DEXes to ensure the best rates.
You can send your limit orders to the 1inch database and then your order will participate in the 1inch aggregation protocol.
A request for quotation (RFQ) is a business process in which a customer requests a quote from a supplier (market maker) for the purchase of some tokens.
Technically, RFQ orders are a stripped-down version of standard orders, which contains less data and tools to manage, which in turn allows to spend significantly less gas for their execution.
FAQs
Utility for limit order protocol
The npm package @1inch/limit-order-protocol receives a total of 42 weekly downloads. As such, @1inch/limit-order-protocol popularity was classified as not popular.
We found that @1inch/limit-order-protocol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.