ubiquibot / permit-generation

A standalone module to generate permits.
0 stars 6 forks source link

Automatic Transfer #6

Open 0x4007 opened 3 months ago

0x4007 commented 3 months ago

The permit generation plugin should also optionally be able to automatically invoke a transfer to the beneficiaries.

This introduces additional complexities because it must be able to estimate the gas fee of the transaction (given that we must support multiple EVM networks, with varying levels of activity, it is not viable to hard code this.)

In an org/repo config we can have a property related to payments transfer: true

It should also allow for the kernel operator (@ubiquity) to take a fee[^1^]. This fee should be configured elsewhere, perhaps in Cloudflare Worker Secrets (partner projects should not be able to change this.) Any fees that we take should be direct transfers of Ubiquity Dollars to ubq.eth.

[^1^]: This means we have to start thinking about how to capture value from payments moving around in our system. I think that we need to make a superior developer experience with our SDK and permit requests, so that plugin developers can easily capture value from the transactions their plugins are helping with.

0x4007 commented 3 months ago

@gentlementlegen something to keep in mind as you work on permit generation: the ability for plugin developers to be able to easily capture value. Like a percentage/flat rate transaction fee. Ideally the plugin developer should have the value automatically transferred to their wallet, but we may be able to prototype this with permits.

0x4007 commented 1 month ago

/start

ubiquibot[bot] commented 1 month ago

Warning! This task was created over 61 days ago. Please confirm that this issue specification is accurate before starting.
DeadlineWed, Jun 12, 7:36 AM UTC
Registered Wallet 0x4007CE2083c7F3E18097aeB3A39bb8eC149a341d
Tips:
0x4007 commented 1 month ago

/stop

ubiquibot[bot] commented 1 month ago
+ You have been unassigned from the task