What This Template Does This template provides an end-to-end starting point for writing your own multi-chain token manager that maximizes supply APY by rebalancing tokens cross-chain with the Chainlink Runtime Environment (CRE) via the Cross-Chain Interoperability Protocol (CCIP).
The template consists of two components:
Contracts (deployed on multiple chains)
- MockPool contract that mimics an AAVE liquidity pool
- ProtocolSmartWallet contract that manages lending positions
CRE Workflow that monitors supply APY of a target asset on each chain and automatically rebalances lending positions (to maximize supply APY)
- Golang workflow targeting the Golang CRE SDK
- TypeScript workflow targeting the TypeScript CRE SDK
Key Technologies:
- CRE (Chainlink Runtime Environment) - Orchestrates workflow with DON consensus
- CCIP (Cross-Chain Interoperability Protocol) - Secure token bridging with instructions
Getting Started You can build with the CRE SDK in either Golang or TypeScript. See the Go README and TypeScript README on GitHub for detailed instructions.
Security Considerations
- This is a demo project - Not production-ready
- Contracts are examples - Write your own audited contracts for your use case
- Use your own RPC for stability - For stable deployment and chainwrite operations it is advised to use your own private RPCs
- Secrets hygiene – Keep real secrets out of version control; use secure secret managers for .env values.