Skip to content

Where does WantRefund come from? #18

@ghost

Description

I was wondering where WantRefund comes from. I did a search for the entire flashbots organization and I only found matches in mev-share-node.

First I thought WantRefund is just an old unused property, but it must be used since users somehow must be able to specify a custom refund percentage.

  1. I'm assuming this property is set in the new version of the relay, which isn't open source. Is that correct? Is there a chance this repo becomes public?
  2. Why don't just use refundConfig? The rpc-endpoint uses it too

Specific code snippet I'm taking about at mevshare/api.go L133:

// send 90 % of the refund to the unmatched bundle or the suggested refund if set
refundPercent := RefundPercent
if unmatchedBundle.Privacy != nil && unmatchedBundle.Privacy.WantRefund != nil {
	refundPercent = *unmatchedBundle.Privacy.WantRefund
}

Thanks in advance for your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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