defi-protocols

Solid

Integration expertise for major DeFi protocols including Uniswap, Aave, Compound, Chainlink, Curve, and Balancer. Supports swaps, liquidity provision, lending, borrowing, oracles, and flash loans.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# DeFi Protocol Integration Skill Expert integration with major DeFi protocols for building composable financial applications. ## Capabilities - **Uniswap Integration**: V2/V3 swaps, liquidity, positions - **Aave/Compound**: Supply, borrow, liquidations - **Chainlink Oracles**: Price feeds, VRF, automation - **Curve Finance**: Pool interactions, gauges - **Balancer**: Weighted pools, joins/exits - **Flash Loans**: Aave, dYdX flash loan execution - **MEV Protection**: Flashbots integration ## Uniswap Integration ### V2 Swaps ```solidity // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract UniswapV2Swap { IUniswapV2Router02 public immutable router; constructor(address _router) { router = IUniswapV2Router02(_router); } function swapExactTokensForTokens( address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOutMin, address to ) external returns (uint256 amountOut) { IERC20(tokenIn).transferFrom(msg.sender, address(this), amountIn); IERC20(tokenIn).approve(address(router), amountIn); address[] memory path = new address[](2); path[0] = tokenIn; path[1] = tokenOut; uint256[] memory amounts = router.swapExactTokensForTokens( amountIn, amountOutMin, path, ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills