dao-contracts icon indicating copy to clipboard operation
dao-contracts copied to clipboard

payroll contract

Open blue-note opened this issue 2 years ago • 3 comments

blue-note avatar Aug 10 '22 17:08 blue-note

wen

sascha1337 avatar Aug 10 '22 17:08 sascha1337

@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.

TrevorJTClarke avatar Aug 15 '22 22:08 TrevorJTClarke

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

blue-note avatar Aug 16 '22 00:08 blue-note

Updated the issue description with some requirements and notes. @blue-note / @TrevorJTClarke, have a look.

JakeHartnell avatar Nov 07 '22 19:11 JakeHartnell

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.

TrevorJTClarke avatar Nov 08 '22 03:11 TrevorJTClarke

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.

TrevorJTClarke avatar Nov 17 '22 18:11 TrevorJTClarke

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.

JakeHartnell avatar Nov 17 '22 19:11 JakeHartnell

Done, and being audited!

JakeHartnell avatar Mar 04 '23 21:03 JakeHartnell