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

Move Staking UI to Redux + SDK #1674

Merged
merged 34 commits into from
Dec 6, 2022
Merged

Move Staking UI to Redux + SDK #1674

merged 34 commits into from
Dec 6, 2022

Conversation

koredefashokun
Copy link
Contributor

Description

This PR moves the staking UI away from wagmi hooks and to using Redux with new SDK methods.

Related issue

N/A

Motivation and Context

N/A

How Has This Been Tested?

N/A

Screenshots (if appropriate):

@vercel
Copy link

vercel bot commented Nov 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kwenta ✅ Ready (Inspect) Visit Preview Dec 5, 2022 at 7:24PM (UTC)

@vercel vercel bot temporarily deployed to Preview November 27, 2022 05:12 Inactive
@vercel vercel bot temporarily deployed to Preview November 27, 2022 05:55 Inactive
@vercel vercel bot temporarily deployed to Preview November 28, 2022 01:50 Inactive
@vercel vercel bot temporarily deployed to Preview November 29, 2022 03:06 Inactive
@koredefashokun koredefashokun marked this pull request as ready for review November 29, 2022 03:17
@vercel vercel bot temporarily deployed to Preview November 29, 2022 03:19 Inactive
Copy link
Contributor

@avclarke avclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Just a few suggestions

sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
sections/dashboard/Stake/EscrowTable.tsx Outdated Show resolved Hide resolved
sections/dashboard/Stake/InputCards/StakeInputCard.tsx Outdated Show resolved Hide resolved
state/staking/actions.ts Outdated Show resolved Hide resolved
sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
sdk/services/kwentaToken.ts Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview November 29, 2022 17:28 Inactive
@vercel vercel bot temporarily deployed to Preview November 29, 2022 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview November 30, 2022 21:38 Inactive
@vercel vercel bot temporarily deployed to Preview December 1, 2022 06:09 Inactive
@vercel vercel bot temporarily deployed to Preview December 1, 2022 06:12 Inactive
@vercel vercel bot temporarily deployed to Preview December 1, 2022 06:21 Inactive
@vercel vercel bot temporarily deployed to Preview December 4, 2022 23:20 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 04:06 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 07:22 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 08:24 Inactive
avclarke
avclarke previously approved these changes Dec 5, 2022
Copy link
Contributor

@avclarke avclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

avclarke
avclarke previously approved these changes Dec 5, 2022
@platschi platschi self-requested a review December 5, 2022 12:27
Copy link
Contributor

@platschi platschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feedback see Discord

@vercel vercel bot temporarily deployed to Preview December 5, 2022 17:02 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 17:51 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 18:09 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 18:30 Inactive
@vercel vercel bot temporarily deployed to Preview December 5, 2022 19:23 Inactive
@platschi platschi merged commit c908d7c into dev Dec 6, 2022
Tburm added a commit that referenced this pull request Dec 8, 2022
* enable all markets on optimism goerli (#1711)

* Bump github/codeql-action from 2.1.32 to 2.1.35 (#1717)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.32 to 2.1.35.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@4238421...b2a92eb)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* minor improvements (typos and links) to README. (#1716)

* use correct factory

* Refactor isolated margin actions

* order submission

* fix disabled conditions

* fix leverage input change

* Move close isolated margin position to sdk and redux

* Move Staking UI to Redux + SDK (#1674)

* Some contracts and types

* Add these

* Maybe work?

* It actually works

* Remove rewards from getClaimableRewards return

* Perf things

* Fix small issues

* Use vestEnabled

* Remove anonymous functions in EscrowTable

* Restructure SDK functions

* Add approve default

* Switch to using BigNumber amounts

* Fix types

* Handle disabling buttons when action is loading

* Add multicall things

* Remove unused useGetFiles hook

* Make wei changes

* Remove unused import

* Replace ethers.BigNumber with BigNumber

* Small performance improvement

* More small optimizations

* Remove redundant async annotation

* Add consideration to README

* Some fixes

* Disable claim when totalRewards is zero

* Fix unstake for LP tokens

* Fix ABI issue

* Claimable rewards

* Refactor trade previews

* start implementing delayed orders

* fix trade previews and inputs

* error handling

* update fee info

* set up delayed orders

* cancel orders

* execute orders

* fix desired time and commit deposit

* set up countdown timer

* fix condition

* Fix cross margin leverage

* Improve cross margin preview speed

* Refactor trade inputs

* fix loader

* fix fetching order

* condition on gas estimate

* fix some todos and defaults

* fix volumes

* remove additional funding rate query

* open order condition

* add buffer

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: leifu <leifu.chen@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Halvor Holsten Strand <halvor.holsten.strand@gmail.com>
Co-authored-by: avclarke <adam@adamclarke.co>
Co-authored-by: Oluwakorede Fashokun <koredefashokun@gmail.com>
@koredefashokun koredefashokun deleted the earn-and-perf branch January 5, 2023 22:52
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.

4 participants