Skip to content

Allow custom recipient of freed coins #334

@benjaminpreiss

Description

@benjaminpreiss

I would like to extend the deweb smart contract to allow setting a different recipient of the coins locked in a deweb page.
Can someone give me directions on how this could be done?

I have located the code for the pages purge() call, but can't find the source for the balance() function:

transferCoins(Context.caller(), balance());

Can someone give me a hint where I can find it?
Also, how would the alternate recipient's address ideally be stored?

Extending the smart contract this way (ideally not as a fork?) could for example enable offering fiat onramps for a deweb page registry, but without the need to kyc customers. Otherwise, a deweb page registry with anonymous fiat onramp could be used as a means for money laundering.

Looking forward to your thoughts!

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