Skip to content

Conversation

@yan-man
Copy link
Collaborator

@yan-man yan-man commented Jul 15, 2025

  • collateral risk steward which can adjust collateral side only, with 0 delay

closes #1

@yan-man yan-man marked this pull request as ready for review July 15, 2025 19:43
@yan-man yan-man marked this pull request as draft July 15, 2025 19:43
@yan-man yan-man changed the title feat: collateral risk steward [POC] feat: collateral risk steward Jul 16, 2025
@yan-man yan-man changed the title [POC] feat: collateral risk steward feat: collateral risk steward tests via configuration Jul 17, 2025
super.test_updateEModeCategories_sameUpdate();
}

/* ----------------------------- Collateral Tests ----------------------------- */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are the positive tests?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separately, can you check is not a problem when using max relative change? i think the only place where we are using is on debtCeiling, but please confirm that.
main concern is that if value is 0, we may not be able to set to non-zero even with max_uint128 value as maxPercentChange

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for updateCollateralSide, confirmed - only place where max rel change is used is for debtCeiling. However, generally max relative change is also applied to supply/borrow caps as well (but shouldn't matter for collateral risk steward).

btw also for debt ceiling, we cannot configure a new newDebtCeiling > 0 when oldDebtCeiling == 0 and there are existing suppliers.

where are the positive tests?

positive tests are inherited from existing RiskSteward tests, do you think more are needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collateral Risk Steward - no limits

3 participants