celo-defi_skill

This skill helps you integrate DeFi protocols on Celo, enabling swaps, lending, and liquidity features with Uniswap, Aave, and Ubeswap.
  • Python

2.5k

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill celo-defi

  • SKILL.md8.7 KB

Overview

This skill integrates DeFi protocols on the Celo blockchain to build swaps, lending/borrowing, liquidity provision, and aggregator features. It provides addresses and example code patterns for Uniswap (and Ubeswap) swaps, Aave V3 lending/borrowing flows, and token approval patterns. Use it to accelerate reliable, production-ready interactions with Celo-native DeFi tooling.

How this skill works

The skill documents core contract addresses for mainnet and Alfajores testnet and supplies concise code examples for common flows: exact-input swaps, ERC-20 approvals, supplying to Aave, and borrowing from Aave. It standardizes ABI shapes and wallet client usage so you can call router, pool, and token contracts consistently. Use the provided fee tiers and asset lists to select appropriate parameters for swaps and liquidity strategies.

When to use it

  • Building swap UX or backend integrations using Uniswap/V3 or Ubeswap on Celo
  • Adding lending and borrowing features with Aave V3 on Celo
  • Implementing liquidity provision, concentrated liquidity positions, or LP NFT management
  • Creating DeFi aggregators or cross-protocol composability on Celo
  • Prototyping on Alfajores testnet before mainnet deployment

Best practices

  • Always run flows first on Alfajores using the provided testnet addresses
  • Approve only the minimal token allowance required and prefer Permit2 where supported
  • Set amountOutMinimum and slippage tolerances to protect users on swaps
  • Use Multicall or Quoter contracts to simulate and quote prices off-chain before sending transactions
  • Monitor interestRateMode and collateral parameters when interacting with Aave to avoid liquidation risk

Example use cases

  • User-facing swap widget that calls Uniswap SwapRouter02 with exactInputSingle
  • Backend service that supplies USDC to Aave V3 and mints aTokens as yield source
  • Liquidity management tool that creates and adjusts Uniswap V3/ Ubeswap V3 concentrated positions
  • DeFi aggregator that routes swaps across Ubeswap and Uniswap on Celo using quoter and multicall
  • Mobile-optimized DEX integration leveraging Ubeswap V2/V3 and on-chain fee tiers

FAQ

Mainnet and Alfajores testnet contract addresses for Uniswap, Ubeswap, and Aave V3 are provided for direct integration.

What prerequisites are required to use the examples?

A web3 wallet or provider compatible with window.ethereum and a client library (examples use viem). Ensure token approvals are performed before protocol calls.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational