dao-contracts
dao-contracts copied to clipboard
payroll contract
wen
@blue-note can you elaborate on the needs here?
Currently working on an implementation with cron.cat - where a proposal kicks off recurring or one time Bank msgs. Happy to work further on this, could get more fancy later with a payroll escrow instance or something.
oh cool! The implementation we're working on is a vesting contract where funds are deposited into the contract and unlock to be claimed by the user on a recurring basis. think there's a slightly different use case there but we should sync up to make sure we're not duplicating work
Updated the issue description with some requirements and notes. @blue-note / @TrevorJTClarke, have a look.
Update on croncat side:
- cw20-streams was pretty close to what is needed
- Create new DAO: "Nopes" on testnet
- created new stream contract
- created proposal that send $NOPE to create a new stream, in a proposal: https://testnet.daodao.zone/dao/juno1nv9436ss66hvgtqvupa0hc6cfxxsr569psk4xdqen3se8ur7r64q3fyp83/proposals/A5
- created croncat task
b16ff67d888d2c42a95ad25eadfbe34055ac99cb564d8f53777ea7b99c38bc7f
to auto-distribute funds every 6 blocks - see task doing things here: https://testnet.ping.pub/juno/tx/AD6DF9642FFAEB60167ACC79F6608448F1D6A2BB316593E4E86C8BB7C6E0E771
So next course of action will be to finish the checklist above and some documentation on how to actually use it.
NOTE: had a conversation with another potential use of stream, which is bi-directional streams. I believe having a linked-stream solves this, so you have 1 way streams that if either stream gets acted upon, both streams are affected. So "pausing" one stream would also pause any linked stream.
NOTE: had a conversation with another potential use of stream, which is bi-directional streams. I believe having a linked-stream solves this, so you have 1 way streams that if either stream gets acted upon, both streams are affected. So "pausing" one stream would also pause any linked stream.
Oh, interesting... so like a vested token swap. Cool.
Done, and being audited!