-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create UI for UbiquityPool
#1
Comments
Is that all the functions you need?? mint and redeem?? |
Yes, I've also added this line to the original issue description:
|
/start |
Tips:
|
Greetings. |
@0x4007 I'm not really sure what's better here. On the one hand |
Honestly I prefer to make every view a separate page. And to keep it as simple as possible. I know it's trendy to make a single page app that can handle millions of functions but I think it doesn't make sense for our goals. So ts-template |
@CaptainPrinz hey
Sorry for the inconvenience, I've updated the issue description, pls use https://github.com/ubiquity/ts-template
Typescript |
Another approach to consider (I have done stuff like this before) wget -r And you can edit the compiled code and swap out the smart contract addresses for example. It might be a bit tricky for some folks but to get something up and running fast this could be the way. That could probably be done in an hour or two. I suppose it just depends on how their code is compiled. |
@CaptainPrinz, this task has been idle for a while. Please provide an update. |
Yet to commence work
…On Fri, 20 Sep 2024, 22:26 ubiquity-os[bot], ***@***.***> wrote:
@CaptainPrinz <https://github.com/CaptainPrinz>, this task has been idle
for a while. Please provide an update.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7M52GYEN6D44ZFMD2MXX5LZXSHI7AVCNFSM6AAAAABMGYJQJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGYZTSMZWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
/wallet 0xb69DB7b7B3aD64d53126DCD1f4D5fBDaea4fF578 |
+ Successfully registered wallet address |
Tip
|
/start |
+ Successfully registered wallet address |
/wallet 0xb69DB7b7B3aD64d53126DCD1f4D5fBDaea4fF578 |
+ Successfully registered wallet address |
/start |
feat: add QA helper scripts
/help |
I'll be taking this forward due to its urgency. |
@zugdev the deadline is at Mon, Nov 11, 9:23 PM UTC |
@0x4007 I started over, I just need to polish some UI/UX, but you are already able to mint and redeem. I will setup an approval flow using a dynamic action button for either step (minting or redeeming). |
I suppose for v1 this direction is appropriate but my vision is to really abstract all the technical and crypto details away. We can consider making another view/page for non crypto people. Details like the slippage and being able to mint with pure LUSD seem technical. Also we should allow for cowswapping in and out to any asset they want so they can "redeem" in any asset. If for some reason cow swap is too difficult to implement, as I recall from earlier discussions, we could consider using other protocols. Uniswap could be a default but maybe there are more interesting options like how spark protocol lets users swap between stables for free. Generating a payment card might also be interesting on this "consumer UI" one day Perhaps uusd.ubq.fi are for the hardcore people and banking.ubq.fi etc can be for the mainstream consumers etc |
I see that as the distinction between this issue (pool) and #4 (on-ramp), I believe it is fine to have both. What's harder to integrate is not the swap, CoWSwap even offers a cool SDK. Guaranteeing order integrity as the backend discretely processes the entire order is the hard part, we could implement an orderbook system to ensure consistency. The good news is that what is used here can and will be used in the banking project, they are closely related. |
Ok, there're 2 PRs that solve the same issue: Regarding #3:
Regarding #13:
Guys, pls thoroughly test the implementations. It takes quite a time to QA such PRs. @zugdev Thank you for jumping in straight with a meaningful implementation but I would wait for #3 because:
@kingsley-einstein Pls make sure that #3 works flawlessly in the shortest time possible. There've already been 3 rounds of QA reviews. Otherwise we'll proceed with #13. |
@kingsley-einstein the deadline is at Fri, Nov 15, 3:51 PM UTC |
Yes I get that, the approval mechanism should be dynamic, that meaning you should always check if the diamond already has enough allowance for the transaction. We also want to have a multi-call to bundle the collateral and governance approvals together, this would save gas and another entire step on the minting flow. We should also check on the background for conditions which block minting/redeeming such as UUSD price or a paused pool, and stop the user before he wastes his time and money trying. FRAX does that with a modal: |
All missing criteria have been satisfied. |
/start |
! You are already assigned to this task. |
There is the new UbiquityPool contract (facet) where users can mint and redeem
Dollar
tokens for collateral tokens.Minting example:
LUSD
+ 5 Governance (UBQ
) tokens worth 5 USDDollar
tokensRedeeming example:
Dollar
tokensLUSD
+ 5 Governance tokens worth 5 USD backWe should create a new frontend (using https://github.com/ubiquity/ts-template) for the UbiquityPool contract and make sure it works with already deployed mainnet contracts.
Notice:
Since the UbiquityPool contract is forked from the FraxPoolV3 contract we can take the Frax UI as an example:
Mint:
Redeem:
The text was updated successfully, but these errors were encountered: