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!
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 thebalance()function:DeWeb/smart-contract/assembly/contracts/deweb-interface.ts
Line 343 in e0f4f47
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!