-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
This issue refers to an extension of the existing fee calculation. This is directly in the context of the function declared in simplicity-dex here.
Fee calculation in lwk_wollet during transaction finalization is declared here from line 1165 up to 1220.
The calculation of fees in simplicity-dex is almost the same, so the idea is to improve it and move it to a more general crate.
Improvements that can be made:
- Use
discount_weightas defined here. - Replace the manual LBTC testnet token definition with
wollet.policy_asset()(see reference here). - Move the logic out of the
cli-clientmodule into an outer crate to enable reuse insimplicityhl-core.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request