Content pfp
Content
@
https://warpcast.com/~/channel/devfc
0 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Does anyone have samples of escrow contracts using @morpho Vaults to earn? Bonus if there are guides etc. Would love to learn about approaches to shares withdraw and deposit handling on a per user / global basis for these systems
2 replies
1 recast
9 reactions

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
cc @moritz from reading your SafeModule for auto earn it relays deposits on a per asset basis. Do you know of solidity code handling withdraws and share positions as well? cc @luc maybe someone you know has done integrations
1 reply
0 recast
2 reactions

moritz 💧🔑 pfp
moritz 💧🔑
@moritz
withdraws should be fairly simple to add as it is very similar to deposits we didn’t add it to ensure the code is as minimal as possible considering it’s not needed in our use case what do you mean by share positions?
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Thank you. Refocused on assets only and got it done. Shares = share in the vault A vault under the hood used shares to know how much of the total assets in the vault you have as a vault could has no fixed asset value e.g. increasing with interest or decreasing if the vault looses money Now wondering if one could do such an auto earn extension on @privy
0 reply
0 recast
0 reaction