From c73102a7ba3c7f6c0a2eef7cd1c50a5c69037f1e Mon Sep 17 00:00:00 2001 From: de-snake Date: Wed, 10 Jun 2026 15:32:50 +0300 Subject: [PATCH] feat: add debt (underlying) field to StrategyConfigPayload Adds a required `debt: Address` so each strategy explicitly carries the borrowed underlying (the debt side of a (collateral, debt) pair). `debt` equals `underlying()` of every credit manager listed in `creditManagers`, enabling the static strategies list to be modeled as discrete collateral/debt pairs. Co-Authored-By: Claude Opus 4.8 --- src/common-utils/static/strategy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common-utils/static/strategy.ts b/src/common-utils/static/strategy.ts index db2e7be39..76bc8578e 100644 --- a/src/common-utils/static/strategy.ts +++ b/src/common-utils/static/strategy.ts @@ -23,6 +23,12 @@ export interface StrategyConfigPayload { * Token address of the strategy */ tokenOutAddress: Address; + /** + * Underlying token borrowed against the collateral (the debt side of the + * (collateral, debt) pair). Equals `underlying()` of every credit manager + * listed in `creditManagers`. + */ + debt: Address; /** * Chain id and network type as they are written in sdk. Wrong entries are being omitted */