Skip to content
Back to skills

Indexedex Standard Exchange

ASecurity

Interact with IndexedEx Standard Exchange vaults via cast: inspect, preview exchangeIn, approve, execute, verify balances.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
devopsgobash

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add cyotee/indexedex --skill indexedex-standard-exchange --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Indexedex Standard Exchange?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Indexedex Standard Exchange
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyotee-indexedex-standard-exchange/badge)](https://www.skillsdirectory.com/skills/cyotee-indexedex-standard-exchange)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: indexedex-standard-exchange
description: >
  Interact with IndexedEx Standard Exchange vaults via cast: inspect, preview
  exchangeIn, approve, execute, verify balances.
---

# IndexedEx Standard Exchange (cast)

## Goal
Exchange tokens through an SE vault (`previewExchangeIn` / `exchangeIn`).

## Prerequisites
- Vault address validated via registry
- Token addresses in vault
- `defi-primitives` approve patterns
- User confirmation for writes

## Inspect
```bash
export VAULT=0x...   # from registry
cast call $VAULT "vaultConfig()((bytes32,bytes32,bytes4[],address[]))" --rpc-url $ETH_RPC_URL
# or per-interface helpers if available on proxy
cast call $TOKEN_IN "balanceOf(address)(uint256)" $USER --rpc-url $ETH_RPC_URL
cast call $TOKEN_OUT "balanceOf(address)(uint256)" $USER --rpc-url $ETH_RPC_URL
```

## Dry-run / preview
```bash
# IStandardExchangeIn
cast call $VAULT \
  "previewExchangeIn(address,uint256,address)(uint256)" \
  $TOKEN_IN $AMOUNT_IN $TOKEN_OUT --rpc-url $ETH_RPC_URL
```
If selector mismatches the live ABI, decode with project interfaces — do not invent args.

## Execute
```bash
cast send $TOKEN_IN "approve(address,uint256)" $VAULT $AMOUNT_IN \
  --rpc-url $ETH_RPC_URL --private-key $PRIVATE_KEY

# exchangeIn(tokenIn, amountIn, tokenOut, minAmountOut, recipient, deadline) — confirm exact signature on live ABI
cast send $VAULT \
  "exchangeIn(address,uint256,address,uint256,address,uint256)" \
  $TOKEN_IN $AMOUNT_IN $TOKEN_OUT $MIN_OUT $USER $DEADLINE \
  --rpc-url $ETH_RPC_URL --private-key $PRIVATE_KEY
```

If the live diamond uses a different signature, read the interface from deployment and adjust — fail rather than guess.

## Verify
```bash
cast call $TOKEN_IN "balanceOf(address)(uint256)" $USER --rpc-url $ETH_RPC_URL
cast call $TOKEN_OUT "balanceOf(address)(uint256)" $USER --rpc-url $ETH_RPC_URL
cast receipt $TX --rpc-url $ETH_RPC_URL
```

## Common failures
- Missing approval
- minAmountOut slippage
- Unsupported token pair on vault
- Calling non-vault address

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.