-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update contract address, uncomment MigrationModal in App * updated contract addresses. Added v4.0 and v4.2 balances to header * update display message on staking modal (ManageStake) if user has v4.1 sAST balance * useStakesForAccount hoo checks for v4.1 and v4.2 balances and maturity of staked AST * add checks to see if user can unstake deprecated v4 sAST balance * update actionsButtonObject with contract write functions for unstaking v4 sAST * formula to convert staking maturity to days and minutes * added v4 unstake function to context box in ManageStake * converted formatted stakingAmount values from numbers to bigints * fixed stakingAmount formatting. Cleaned up canStake, canUnstake, needsApproval variables in StakingModal.tsx * fixed decimals in contract write functions. Fixed unstakeV4Sast in TransactionTracker. Removed comments in code * combined v4 and v4.2 sAST balance in header * remove comments * remove unused css class froom button * undo temp changes in MigrationModal and undo rounding down in formatNumber * remove styles in piebar * use BigNumber.js to correctly format max sAST and AST balances * changed numbers to bigints in contract read functions. Fixed formatting of stakingAmount in StakingModal * Update v3 staking contract address * change v4 staking balance and time duration to white text * fixed NaN when unstaking transaction was cancelled from content box * set form to 0 if unstaking from legacy v4 contract * fixed Numberinput from NaN to 0 after unstaking v4 deprecated sAST * fixed rendering of contentBox on staking modal. Added official announcement link to pending v4 stake box * Fix checking v3 available when no v3 balance * Only simulate a transaciton when there's an amount * Only run sim for current tab * update contract addresses to latest, update piebar to include deprecated v4 balances, update content boxes in ManageStake.tsx * added variable to useStakingModalStore hook to handle v4 unstaking balance in TransactionTracker after user successfully unstakes v4 * changed v4UnstakingBalance in stakingModalStore from bigint to number to fix useEffect error * disable useUnstakeSast for v4 if maturity of stake is not 0 * add punctuation to contentBox * Fix unstake enable --------- Co-authored-by: greypixel <greypixel@gpxl.tech>
- Loading branch information
1 parent
11b1370
commit d1a49f9
Showing
24 changed files
with
576 additions
and
384 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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.