Close #82 : add risk parameter event topics to README and unit tests#218
Open
emmyoat wants to merge 1 commit into
Open
Close #82 : add risk parameter event topics to README and unit tests#218emmyoat wants to merge 1 commit into
emmyoat wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds event topic documentation to the README and dedicated unit tests for all risk-parameter changes (
set_min_liquidity,set_max_settlement_amount,set_asset_fee, andclear_asset_fee), enabling off-chain indexers and risk-monitoring tooling to observe these admin actions.Key Changes
### EventsinREADME.md:("minliq", asset)– minimum liquidity floor configured (data:i128floor)("maxamt", asset)– maximum settlement amount configured (data:i128amount)("assetfee", asset)– asset-specific fee override set (data:u32bps)("feeclear", asset)– asset-specific fee override clearedsrc/test.rs:test_set_min_liquidity_emits_eventtest_set_max_settlement_amount_emits_eventtest_set_asset_fee_emits_eventtest_clear_asset_fee_emits_eventrequire_admin) and validation behavior across all setters remains intact.