GlassEaters / hydra

Collective account pooling, fan out wallet, dao treasury
hydra-dox.vercel.app
GNU General Public License v3.0
68 stars 29 forks source link

allow authority to stake on someones behalf #16

Closed staccDOTsol closed 2 years ago

staccDOTsol commented 2 years ago

This builds, but I can't figure out how to deploy this thing devnet. this 1-liner change should allow either the wallet owner or the fanout authority to stake, rather than just wallet owner.

In such a way, probably but I can't test until I know more about how to deploy, an authoirity can mint x number of their own tokens and then strake them on their member's behalf. I belieb this satisfies cyrii's requirement to have people be able to choose a fanout fungible membership tokens and start distributing to members to drive fomo.

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/glasseaters/hydra-dox/HxyNc477tXy1qMDcrxAnDQ3DdidN
✅ Preview: https://hydra-dox-git-fork-staccdotsol-main-glasseaters.vercel.app

austbot commented 2 years ago

This will not work in this instruction as the the ownership must transfer or account closure of the token account and in order to do that the Fanout Authority must be signing.

I will move this to a separate instruction that accomplishes StakeForMember

staccDOTsol commented 2 years ago

hey @austbot man I basically have this done, I'll push it

staccDOTsol commented 2 years ago

here, some signature somewhere is failing. I summon 'real devs' lol. do not merge this

austbot commented 2 years ago

Done in the Austbot way, thank you for your work https://github.com/GlassEaters/hydra/commit/fb69c1fcd279bd7668171147baa4b52bb237db71