Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Comments

feature: pricing policy#103

Open
IvayloAtanasov wants to merge 54 commits intodevelop-pre-dklsfrom
feature/pricing-policy
Open

feature: pricing policy#103
IvayloAtanasov wants to merge 54 commits intodevelop-pre-dklsfrom
feature/pricing-policy

Conversation

@IvayloAtanasov
Copy link

@IvayloAtanasov IvayloAtanasov commented Apr 28, 2025

Changes

  • "Approve Fee" button for each plugin in the marketplace web app
  • plugin_pricings table to store pricing policies signed by users
  • GET /plugin/:pluginType/pricing-policy on plugin (verifier endpoint also exists but is not needed). FE would need it in order to check if user signed the pricing policy, before giving permission to the user to use plugin features.
  • POST /plugin/:pluginType/pricing-policy on both plugin (create) and verifier (sync). Create signed pricing record. Verifier also check of the signed policy matches the policy definition in plugin. To be used upon plugin install.
  • generate fee ERC20 transfer transaction on every dca policy schedule trigger
  • validate fee transaction in verifier
  • fee wallet EOA to collect all dca plugin fees

Implementation notes

  • fees only implemented for DCA policy
  • only per tx fee type is implemented
  • fees are charged on top of assigned transactions, not deducted from the amount spent with each trigger

…elper for retrieving public key needed for signing txs; index by plugin type
@IvayloAtanasov IvayloAtanasov changed the title feature / pricing policy feature: pricing policy Apr 28, 2025
@IvayloAtanasov IvayloAtanasov changed the base branch from feat/eddsa-signature-support-2 to develop-pre-dkls May 2, 2025 12:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant