Skip to content

Suggestions for extending fee calculation #27

@ikripaka

Description

@ikripaka

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_weight as defined here.
  • Replace the manual LBTC testnet token definition with wollet.policy_asset() (see reference here).
  • Move the logic out of the cli-client module into an outer crate to enable reuse in simplicityhl-core.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions