Replies: 5 comments 4 replies
-
Hi @heytdep, very nice! I noticed that the admin has to be involved in deposit, and has to separately supply the deposit amount. If you would like to remove the need for the admin to be involved, check out the token contracts |
Beta Was this translation helpful? Give feedback.
-
@leighmcculloch updated the code and the article, I have also removed the need for the admin in withdrawal which was redundant since when burning shares the code was already making an assertion (also fixed the assertion that only allowed to withdraw < user balance rather than <=). Let me know! |
Beta Was this translation helpful? Give feedback.
-
@heytdep thanks for this submission, and for revising it based on feedback! We should start reviewing incoming next week, and reaching out about rewards, so stay tuned for that. In the meantime, definitely feel free to keep the convo going, to ask any questions or share any feedback you have, even to submit another entry. |
Beta Was this translation helpful? Give feedback.
-
Heya Tommaso, Nice tutorial,, btw! Looking forward to more tutorials! Please let us know if you have any questions. (You can also message me on discord @ anuxhya) All the best, |
Beta Was this translation helpful? Give feedback.
-
Hello @heytdep! Great write up! I noticed a couple things while reviewing the contract: Auth Share minting / burning As you mentioned in the write-up, vaults are everywhere in DeFi, so great choice as an example. Maybe next steps could be a ERC-4626 compliant wrapper for the native token contract 👀 |
Beta Was this translation helpful? Give feedback.
-
I have just written a how to tutorial on creating a soroban vault contract (minting and burning shares, depositing, withdrawal). This is the post (just wrote it on my personal blog): https://heytdep.github.io/comp_posts/6)--pub)--Vault-smart-contract-with-Soroban/post.html
Here's the repo of the contract: https://github.com/Xycloo/soroban-vault-contract
This submission was ideated and written along with @itsfederico.
Beta Was this translation helpful? Give feedback.
All reactions