cyotee/cyotee-claude-plugin-crane/crane-aerodrome

Claude Code and agent skill by cyotee/cyotee-claude-plugin-crane

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user asks about "Aerodrome integration", "Aerodrome swap", "Aerodrome liquidity", "volatile pool", "stable pool", "Slipstream", "concentrated liquidity on Aerodrome", or needs to interact with Aerodrome DEX on Base using Crane's service libraries.

Install

npx vskill@latest install cyotee/cyotee-claude-plugin-crane/crane-aerodrome

SKILL.md

The same SKILL.md was published earlier as cyotee/cyotee-claude-plugin-crane/crane-aerodrome.

Crane Aerodrome Integration

Crane provides comprehensive Aerodrome v1 and Slipstream integration with services, stubs, and test infrastructure.

Components

ComponentLocationPurpose
AerodromServiceVolatileservices/AerodromServiceVolatile.solVolatile pool operations (xy=k)
AerodromServiceStableservices/AerodromServiceStable.solStable pool operations (x³y+xy³=k)
AerodromeRouterAwareRepoaware/AerodromeRouterAwareRepo.solRouter dependency injection
AerodromePoolMetadataRepoaware/AerodromePoolMetadataRepo.solPool metadata storage
TestBase_Aerodrometest/bases/TestBase_Aerodrome.solFull protocol deployment
TestBase_Aerodrome_Poolstest/bases/TestBase_Aerodrome_Pools.solPool creation helpers
SlipstreamRewardUtilsslipstream/SlipstreamRewardUtils.solCL reward calculations

Pool Types

Aerodrome has two pool types with different AMM curves:

TypeCurveUse CaseService
Volatilexy = kETH/USDC, volatile pairsAerodromServiceVolatile
Stablex³y + xy³ = kUSDC/USDT, stablecoin pairsAerodromServiceStable

Quick Start: Volatile Pool Swap

solidity
import {AerodromServiceVolatile} from "@crane/contracts/protocols/dexes/aerodrome/v1/services/AerodromServiceVolatile.sol";
import {AerodromeRouterAwareRepo} from "@crane/contracts/protocols/dexes/aerodrome/v1/aware/AerodromeRouterAwareRepo.sol";
contract MyVault {
function swap(IERC20 tokenIn, IERC20 tokenOut, uint256 amount) external {
IRouter router = AerodromeRouterAwareRepo._router();
IPoolFactory factory = router.defaultFactory();
IPool pool = IPool(factory.getPool(address(tokenIn), address(tokenOut), false));
AerodromServiceVolatile._swapVolatile(
AerodromServiceVolatile.SwapVolatileParams({
router: router,
factory: factory,
pool: pool,
tokenIn: tokenIn,
tokenOut: tokenOut,
amountIn: amount,
recipient: address(this),
deadline: block.timestamp
})
);
}
}

Service Operations

Volatile Pool Service
solidity
// Simple swap
function _swapVolatile(SwapVolatileParams memory params) internal returns (uint256 amountOut);
// Swap and deposit in single transaction
function _swapDepositVolatile(SwapDepositVolatileParams memory params) internal returns (uint256 lpOut);
// Withdraw and swap to single token
function _withdrawSwapVolatile(WithdrawSwapVolatileParams memory params) internal returns (uint256 amountOut);
// Quote optimal swap amount for balanced deposit
function _quoteSwapDepositSaleAmtVolatile(params) internal view returns (uint256 saleAmt);
Stable Pool Service

Same function signatures with Stable suffix:

solidity
function _swapStable(SwapStableParams memory params) internal returns (uint256 amountOut);
function _swapDepositStable(SwapDepositStableParams memory params) internal returns (uint256 lpOut);

Route Building

solidity
IRouter.Route memory route = IRouter.Route({
from: address(tokenIn),
to: address(tokenOut),
stable: false, // true for stable pools
factory: address(factory)
});
IRouter.Route[] memory routes = new IRouter.Route[](1);
routes[0] = route;
router.swapExactTokensForTokens(
amountIn,
amountOutMin,
routes,
recipient,
deadline
);

AwareRepo Pattern

solidity
// Initialize during deployment
AerodromeRouterAwareRepo._initialize(router);
// Access in operations
IRouter router = AerodromeRouterAwareRepo._router();

Testing

solidity
import {TestBase_Aerodrome_Pools} from "@crane/contracts/protocols/dexes/aerodrome/v1/test/bases/TestBase_Aerodrome_Pools.sol";
contract MyTest is TestBase_Aerodrome_Pools {
function setUp() public override {
super.setUp();
// aerodromeRouter, aerodromeFactory, voter, etc. available
}
function test_swap() public {
// Create pool and test
}
}

Additional Resources

Reference Files
  • `references/aerodrome-services.md` - Detailed service patterns and examples

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyotee/cyotee-claude-plugin-crane/crane-aerodrome/badge)](https://verified-skill.com/skills/cyotee/cyotee-claude-plugin-crane/crane-aerodrome)

Something wrong with this skill or its page? Tell us.