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)
MockPoolcontract that mimics an AAVE liquidity poolProtocolSmartWalletcontract 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.
1Golang SDK
For detailed instructions on getting started with the Go SDK, see the Go README on GitHub.
2TypeScript SDK
For detailed instructions on getting started with the TypeScript SDK, see the TypeScript README on GitHub.
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
.envvalues.
CREATED BY CHAINLINK LABS