Skip to content

Commit

Permalink
Move Staking UI to Redux + SDK (Kwenta#1674)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
koredefashokun authored Dec 6, 2022
1 parent 2a09548 commit c908d7c
Show file tree
Hide file tree
Showing 40 changed files with 5,472 additions and 2,438 deletions.
15 changes: 0 additions & 15 deletions contexts/StakingContext.tsx

This file was deleted.

Loading

0 comments on commit c908d7c

Please sign in to comment.