Documentation Index
Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
Use this file to discover all available pages before exploring further.
Looking for Contributors! This Skill needs an implementation.Contributing a Skill involves:
- Writing a reference implementation with full functionality
- Adding comprehensive tests
- Writing documentation with usage examples
See the ethers-provider Skill for an example of a complete Skill implementation.Interested? Open an issue or PR at github.com/evmts/voltaire.
Skill — Copyable reference implementation. Use as-is or customize. See Skills Philosophy.
Swap stablecoins and pegged assets with minimal slippage via Curve’s specialized AMM.
Planned Implementation
Swaps
import { Curve } from './Curve.js';
const curve = Curve({ provider });
// Swap stablecoins
await curve.exchange({
pool: THREE_POOL,
i: 0, // DAI
j: 1, // USDC
dx: parseUnits('1000', 18),
minDy: parseUnits('990', 6),
signer,
});
Liquidity
// Add liquidity
await curve.addLiquidity({
pool: THREE_POOL,
amounts: [parseUnits('1000', 18), parseUnits('1000', 6), parseUnits('1000', 6)],
minMintAmount: 0n,
signer,
});
// Remove liquidity
await curve.removeLiquidity({
pool: THREE_POOL,
amount: lpBalance,
minAmounts: [0n, 0n, 0n],
signer,
});
Resources