Using the Factory (Advanced)
⏱️ 2 min read
struct AssetStrategySet { address: Address, // The address of the asset (token) strategies: Vec<Strategy>, // A vector of strategies for this asset } struct Strategy { address: Address, // The address of the strategy contract name: String, // The name of the strategy paused: bool, // Whether the strategy is initially paused }{ "address": "CBZ5WXLMCH...", // USDC token address "strategies": [ { "address": "CCIN4WQP5Z...", // Lending strategy address "name": "DummyStrategy", "paused": false }, { "address": "CD2QVXMN7Y...", // Yield farming strategy address "name": "DummyStrategy2", "paused": false } ] }
Last updated