Skip to content

Improve fund burning and abstract costs #3

Description

@Tomasvrba

Currently the burnSignal contract burns funds as follows:

Whenever funds are received on one of the VoteOptions contracts via the receive() function, two things happen:

There are two issues/areas for improvement with this approach:

  • This burn transfer happens on every deposit, adding an additional transaction to the network for each vote
  • The additional gas cost is incurred by the voter (roughly doubled since we are executing an extra transaction)

What should happen:

  • For efficiency, batch burn transactions together (e.g. when VoteOption contract balance surpasses a certain threshold)
  • Abstract the additional gas cost so it's not paid by the voter (e.g. Have the issuer of the proposal fund both the yes/no options with some funds to execute these transactions, these funds could be returned to the issuer after the deadline when the contract selfdestructs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priorityenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions