Content pfp
Content
@
0 reply
0 recast
0 reaction

Dan Finlay 🦊 pfp
Dan Finlay 🦊
@danfinlay
Has anyone written eth contracts where one token is continuously minted to the holders of another token? I know the GNO/OWL pattern (which only works when staked). Seems like doing it safely requires meticulous, maybe UTXO-like tracking of proportions & flow rates change. Any efficient solutions?
5 replies
11 recasts
116 reactions

xh3b4sd ↑ pfp
xh3b4sd ↑
@xh3b4sd.eth
Do you need to send tokens every block or is it good enough when balanceOf returns the accurate result when being called?
1 reply
0 recast
2 reactions

Dan Finlay 🦊 pfp
Dan Finlay 🦊
@danfinlay
I don't think `balanceOf` even needs to be accurate for profits owed. I think there are quite a few places where the guarantees could be weakened, but the basic promises should be something like: - If anyone gets paid out, then everyone who has equity at that point is assured to be able to get paid out at that rate (if not paid out instantly). One way I was imagining weakening liveness for performance is making the withdraw function public, and only dividing up owed funds according to holdings at those points. If people care a lot about shifting equity, they could always call it more often. Otherwise, if equity is stable, everyone can just chill and watch it accrue.
0 reply
0 recast
0 reaction

0xbigog pfp
0xbigog
@bigog
Take a look if superfluid contracts - they do payment streaming
0 reply
0 recast
0 reaction