Skip to content

feat: preview account data after dynamic config refresh - #1329

Open
babymakh2026-maker wants to merge 1 commit into
aave:mainfrom
babymakh2026-maker:agent/preview-dynamic-config-refresh
Open

feat: preview account data after dynamic config refresh#1329
babymakh2026-maker wants to merge 1 commit into
aave:mainfrom
babymakh2026-maker:agent/preview-dynamic-config-refresh

Conversation

@babymakh2026-maker

Copy link
Copy Markdown

Summary

  • add getUserAccountDataAfterDynamicConfigRefresh() so users and integrations can preview account data using the latest dynamic reserve configs
  • keep getUserAccountData() semantics unchanged by adding explicit dynamic config calculation modes
  • cover that the preview reads latest dynamic config keys without updating the user's stored keys, then matches getUserAccountData() after updateUserDynamicConfig()

Addresses part of #638.

Testing

  • yarn lint
  • forge test --match-path tests/contracts/spoke/configuration/Spoke.DynamicConfig.Triggers.t.sol -vvv
  • forge test --match-path tests/contracts/spoke/misc/Spoke.UserAccountData.t.sol -vvv
  • forge build --force --skip 'tests//*.sol' --skip 'scripts//*.sol'
  • forge build --sizes --skip 'tests//*.sol' --skip 'scripts//*.sol' (SpokeInstance: 24,375 B runtime, 201 B margin)

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.

1 participant