Skip to content
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

Polish CreateSafeModal #90

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Conversation

nathanhleung
Copy link
Collaborator

Fixed the approval/deposit step logic and added a loading state while navigating to the created safe page

Screen Shot 2022-04-04 at 13 56 42

@vercel
Copy link

vercel bot commented Apr 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rari-capital/rari-dapp-next/J1DhANoDK1c8FUokYcyXNkRSdmwE
✅ Preview: https://rari-dapp-next-git-nathanhleung-create-safe-edf2cb-rari-capital.vercel.app

@nathanhleung nathanhleung merged commit b79f648 into turbo Apr 4, 2022
@nathanhleung nathanhleung deleted the nathanhleung/create-safe-modal-fix branch April 4, 2022 20:57
jarbacoa pushed a commit that referenced this pull request Apr 14, 2022
jarbacoa added a commit that referenced this pull request Apr 20, 2022
* Turbo UI WIP

* Create Turbo landing page

* Turbo create safe (#64)

* Design first two steps of turbo modal (#66)

* Bump rari-components in Turbo (#67)

* Safe page (#70)

* fix create safe modals

* get user safes if you have any

* rename hooks to .ts

* added approval utils and integrated with createSafeAndDeposit

* deposit modal works

* boost / less works for strats

* safe utilization

* safe health on safe card

* Turbo Safe Modal (#71)

* Bump rari-components, fix type error

* Add approval modal state (#72)

* Modal Final Touches (#73)

* Progress on individual safe page (#74)

* Clean up context

* Connected Data to Safe Page (#76)

* Add deposit, withdraw, and claim interest modals (#77)

* show strategy data in table (#78)

* custom Statistics component

* update table

* moved modals into folder

* moved safe health into safe type

* Aaron's UI fixes (#79)

* Fix type error in safe strategies table (#80)

* added usdPricedTurboSafe data - updatedSafeData hook - reorg files

* fixed safe utilization errors on preview

* Statistic component, Aaron's feedback

* updated StatisticsTable

* update StatisticsTable

* 🅱️oost

* less built into boost modal

* Second ModalStep for flows + add safebalanceFei to claimable

* claiming works

* Fix type error that was breaking build (#83)

* Modify lockfile to install rari-components over https instead of ssh (#82)

* fetchmaxSafeAmount + form validation on modals

* Work on Turbo Index page (#84)

* Handle undefined strategy case (#85)

* Finish index page ui (#86)

* Turbo Safe Card update

* max boost using lens secondary

* Fix table key issue (#87)

* withdraw feature works

* CreateSafe fix

* Updated lens

* Updating addresses

* Updating params

* Fix type errors, bring in working package-lock.json

* Polish CreateSafeModal (#90)

* Add mocked net APY, create final state for deposit modal (#91)

* Stack stats in SafeCard, give Modal buttons more vertical padding (#92)

* Updating utils to match new lens

* Adding maxBoost to safe info

* Using chainID now

* Fixed deposit modal

* UI fix

* removed unnecessary queries

* Fix safeAndDeposit steps

* Comments and stats edition

* Fix type errors

* MaxDeposit button for safe creation

* Skip button fix

* Fixed allowance bug

* stepper

* Revert

* parse deposit amount

* Don't increment step if createSafe fails

* Wait until safe is created before setting loading to false

* Open Learn More Medium article in new window

* Bump rari-components

* Make checkbox smaller on success screen

* Change “back to Turbo home” to “All safes”

* boost caps // strategies filter // Safe Card refactor

* context + refactor

* approvals + err handling on modal funcs

* Fix Boost modal

* makes devnet faster

* navigate to created safe

* fix pool 156

* Bunch of stuff

* apy fix

* Fix type error

* Only show APY up to hundredths

* Make Getting Started clicks functional

* Fix disabled calculation in modals

* Resolve Aaron's notes

* updatedSafe skeleton

* Big dump flushhh

* Adding TurboOracle to constants

* created getMarketCF

* Adding simulation stats to createSafeAndDeposit

* Stats at the end

* boost caps

* lookin good big dog

* Fix build error caused by missing BalancesContext

* Fix

* agg data

* agg data

* new header

* Update SafeCard

* Make header font-weight 600

* More safe card cosemetic updates

* Add APY arrow on safe index page

* fix avg apy calc

* Fix splitHairs function

* Make Turbo Safe Page responsive

* Prefetch TRIBE token data

* admin check

* admin alert

* More mobile handling

* Getting started step styling

* Use theme colors in alerts

* Account Change

* lift boostmodal state to top

* remove rss

* many minor changes

* fix undefined bug on safe creation

* Approval fix

* Deposit modal tx rejection handle

* Modal reset after tx

* Strategy boost bug fix

* build error fix

* Refactor TurboIndex page

* small stuff

* Create Boost/Less success state (#98)

* Add claim interest success state (#99)

* Use newest version of rari-components StatisticsTable (#100)

* Update Boost Modal StatisticsTable (#101)

* Update deposit/withdraw modals (#102)

* Bump rari-components and fix button disabled hover style

* Delete dead code

* liquidation prices

* Create new index page (#103)

* ui touchups

* animations

* build err

* updated colors on deposit modal

* fix

* Deposit Modal Validation

* re-add slidefade

* bring back searchbar

* Fix landing page spacing

* Bump rari-components

* Handle DIVIDER case in UpadtingStatisticsTable

* Modal footer

* boost bug

* finally reset stepper

* merge conflix

* create safe through TurboMaster

* fix

* remove hardcap

* max withdraw

* 🐛 🔫

* fix withdraw + add anims

* trying logo anim on main page

* max withdraw on zero util

* strat names

* remove deposit input err

* remove deposit input err

* fix approve deposit flow

* delist strats + deposit fix

* collat boost cap

* small stuff

* Safes page

* Protocol safes page

* cosmetics

* disabled buttons if not admin

Co-authored-by: Koan <[email protected]>
Co-authored-by: Sharad <[email protected]>
Co-authored-by: cryptickoan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant