Introduction: https://youtu.be/ldqRNLbQflI Current progress: https://www.youtube.com/watch?v=Vb0YfFJg770
The AlfaAPY is the first yield optimization DeFi protocol built on the Internet Computer Protocol (ICP) utilizing ckBTC, similar to Yearn Finance on Ethereum. The protocol automatically maximizes returns for users by finding the highest-yielding liquidity pools and dynamically reallocating assets to optimize yield.
The AlfaAPY is designed to solve the challenge of finding and utilizing the best yield opportunities in the ICP ecosystem. The protocol continuously monitors APY across various liquidity pools from different DeFi providers like KongSwap, ICPSwap, and others. When a higher-yielding opportunity is detected, it automatically rebalances funds to maximize returns.
With an easy-to-use interface for managing investments and tracking performance, users can effortlessly monitor their yield optimization strategies while leveraging the power of ckBTC for efficient cross-chain transactions and yield generation.
The AlfaAPY interface provides an intuitive and user-friendly experience for managing your yield optimization strategies.
- Deposit: Users deposit assets (ckBTC, ICP, etc.) into their chosen strategy.
- Monitoring: Protocol tracks APY across various liquidity pools.
- Rebalancing: Funds automatically move to higher-yielding pools.
- Withdrawal: Users can withdraw assets with accumulated yield anytime.
- Automated Yield Optimization: Automatically moves assets between liquidity pools and providers to maximize APY.
- Multiple Asset Strategies: Supports various assets including ckBTC, ICP, and stablecoin pairs.
- Multiple Providers: Integrates with various DeFi providers on ICP, including Kongswap and ICPSwap.
- Non-custodial: Users maintain control of their assets while benefiting from optimization.
- Secure and Transparent: Built on the secure and transparent infrastructure of ICP.
- Low Fees: Minimal fees compared to manual rebalancing due to efficient ckBTC transactions.
AlfaAPY is built on a modular architecture with the following components:
- Vault: Main entry point for user deposits and withdrawals.
- Strategies: Asset-specific implementations for yield optimization.
- Liquidity Service: Handles interactions with liquidity pools.
- Swap Service: Manages token swaps between different assets.
- Repository: Manages persistent state and strategy data.
- Calculator Functions Documentation - Detailed documentation of share calculation and liquidity distribution functions.
- Kong Swap Provider Documentation - Documentation for working with Kong Swap pools and APY calculations.
- Rust: Primary programming language
- Internet Computer Protocol (ICP): Blockchain platform
- Candid: Interface description language for ICP
- ICRC-1/ICRC-2: Token standards for asset handling
- KongSwap/ICPSwap: DEX integrations for liquidity provision and swaps
- TypeScript: Frontend programming language
- Vite: Build tool and development server
- React: UI framework
- @dfinity packages: Internet Computer SDK
- @nfid/identitykit: Authentication integration
- @reduxjs/toolkit: State management
- TailwindCSS: Utility-first CSS framework
Ensure you have the following tools installed before diving into development:
- Rustup
^v1.27.1 - DFX
^v0.24.0 - jq
^1.6
⚠️ Note: These versions are specific for compatibility with the Internet Computer SDK.
Begin by starting a local DFX instance:
dfx start --background --cleanTo deploy the vault canister with the specified ID, run:
dfx deploy vault --no-wallet --specified-id "ownab-uaaaa-aaaap-qp2na-cai"cargo test --libInstall these dependencies before testing:
- NodeJS
^v20.16.0 - Yarn
^v1.22.22
To run the integration tests, use:
npm i && npm run testThis project is licensed under the MIT License - see the LICENSE file for details.