Skip to content

Implement market fees configuration and tests - #32

Merged
m-kus merged 9 commits into
mainfrom
cursor/implement-market-fees-configuration-and-tests-9f64
Aug 22, 2025
Merged

Implement market fees configuration and tests#32
m-kus merged 9 commits into
mainfrom
cursor/implement-market-fees-configuration-and-tests-9f64

Conversation

@m-kus

@m-kus m-kus commented Aug 22, 2025

Copy link
Copy Markdown
Member

Introduce a MarketFees substructure to centralize and make fee configuration fully configurable, addressing inconsistencies and potential transaction failures due to ad hoc fee handling.

Previously, fee configuration was sparse, hardcoded, or not implemented, leading to potential inconsistencies in transaction calculations (e.g., CTV hash mismatches) and mempool issues. This PR centralizes fee definitions, allowing for configurable deposit, withdraw, and administrator fees, ensuring consistent and correct fee application across all transaction types (deposit, payout).


Open in Cursor Open in Web

…in fees

Co-authored-by: mz <mz@bakingbad.dev>
@cursor

This comment was marked as off-topic.

@m-kus
m-kus marked this pull request as ready for review August 22, 2025 08:31
@m-kus
m-kus merged commit c6408f9 into main Aug 22, 2025
1 check passed
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.

2 participants