deprecated-near-apps / linkdrop-proxy

If you want to create really low cost linkdrops...
5 stars 2 forks source link

Contract Commission Accounting #4

Open willemneal opened 3 years ago

willemneal commented 3 years ago

Since this contract will be accrue commission, we should track the total attached deposits and if the contract balance - attached deposits reaches a certain level we transfer funds to the proxied contract.

Or think of some other way to use the funds. Perhaps a DAO?

mattlockyer commented 3 years ago

There's 2 ways to think about it.

Deploy one linkdrop proxy and manage like you described.

Everyone deploys their own contract and owns the account so they can transfer whenever they want.

willemneal commented 3 years ago

What I like about the first is that the contract writers just need to implement their own send and a call back. Of course they can always wrap their own but if the proceeds of the linkdrop process go back to the foundation it will help even more to fund grants.

mattlockyer commented 3 years ago

Yea ok so like we need the overflow balances tracked in the contract for the "send/send_with_callback" predecessors.

This kind of accounting is "ok", but complicates the contract a bit. Feel free to add it, I'm sure you'll come up with something svelte!