All skills
injectivelabs avatar

/injective-rfq-integrations

@af4a540

Integrate Injective RFQ taker flows into browser apps and operational quote monitors. Use this skill when building, reviewing, or debugging RFQ gateway autosign settlement, Web3Gateway AuthZ setup, manual TakerStream quote collection, client-side gateway-style quote selection, RFQ open/close flows, gateway prefetch, optimistic position updates, conditional TP/SL intents, quote uptime probes, market-readiness checks, or mainnet RFQ frontend integrations. Covers mainnet parameters, canonical decimals, quote windows, signer slots, market discovery, quote-hit diagnostics, and production RFQ gotchas.

Use this Skill: https://skilld.dev/gh/injectivelabs/agent-skills/injective-rfq-integrations

This session only. Nothing lands on disk.

referencesconditional-tpsl.md

≈446 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Conditional TP/SL

RFQ TP/SL is a signed RFQ close intent. It is not an orderbook reduce-only limit order.

Trigger Matrix

Position TP trigger SL trigger Close direction
Long mark_price_gte mark_price_lte short
Short mark_price_lte mark_price_gte long

Every TP/SL conditional order must use margin: "0".

Defaults

export const RFQ_TPSL_SIGNED_INTENT_VERSION = 1
export const RFQ_TPSL_SUBACCOUNT_NONCE = 0
export const RFQ_TPSL_DEADLINE_MS = 21 * 24 * 60 * 60 * 1000
export const RFQ_TPSL_NONCE_WINDOW_MS = 60_000
export const RFQ_TPSL_SLIPPAGE = 0.005
export const RFQ_TPSL_MIN_FILL_RATIO = 0.1

Replay Counters

Fetch lane state before signing:

{
  "taker_intent_state": {
    "taker": "inj1...",
    "market_id": "0x...",
    "subaccount_nonce": 0
  }
}

Use the returned epoch and lane_version in the EIP-712 message and the submitted conditional order.

Edit And Cancel

To edit TP/SL:

  1. If any pending conditional order exists for the market, broadcast cancel_intent_lane through a gasless broadcaster.
  2. Re-query lane state.
  3. Re-sign any TP/SL that should remain active.
  4. Submit each fresh signed intent.

Canceling only TP or only SL still invalidates the whole lane. Preserve the other side by re-signing it after the lane cancel.

The cancel transaction is a normal contract execute message. It can use the same Web3Gateway fee-payer path as AuthZ setup if you want the user wallet to sign it directly, or an AuthZ grantee broadcaster that itself uses fee delegation.

Reduce-Only Close Cleanup

After a manual reduce-only close, cancel the lane for that market. Otherwise a stale TP/SL intent could trigger against a later position in the same market.

Source: SKILL.md on GitHub

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a documentation-only integration guide for Injective RFQ (Request for Quote) taker flows. It contains no executable code, malicious instructions, or obfuscation. It provides security best practices for handling ephemeral keys and validating external data from market makers.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at af4a540. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago
metadata
{
  "author": "ck",
  "version": "1.0.0"
}

README badge

README badge for injectivelabs/agent-skills/injective-rfq-integrations