-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRWT-3133 / Kate / [DTrader-V2] Tech Debt: Refactor Stake component (#…
…17620) * refactor: create new stake component * feat: add function for forming proposal request body * feat: add be and fe validation * refactor: decomposition * chore: uncommited trade param * chore: structure refactoring * feat: handle turbos and vanillas cases * refactor: rely on is_fetching flag * feat: add error handling in snackbar * revert: extra non-aligned file from master * feat: add logic for multipliers * refactor: stake delais structure * feat: add another proposal for rise fall * fix: types * revert: extra non-aligned file from master * feat: add logic for exctraction payout and max payout * feat: add rise fall * refactor: improve snackbar behaviour * chore: exctract function to utils * refactor: add tests for stake * refactor: add tests for payout function * chore: replace array method * chore: spelling * fix: reset commission and stop out * refactor: usereducer, created hook for fetching data and exctract logic for handling response * refactor: extract logic for state initiation into a function * refactor: handle more cases with fe error * feat: add max length restriction * refactor: rewrite with the usage of reducer * chore: add string wrapper
- Loading branch information
1 parent
2a4fac4
commit 6564b3a
Showing
14 changed files
with
876 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/trader/src/AppV2/Components/TradeParameters/Stake/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Stake from './stake'; | ||
|
||
import './stake.scss'; | ||
|
||
export default Stake; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.