Skip to content

Commit

Permalink
Fix withdraw/deposit max (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
zencephalon authored Jan 25, 2024
1 parent 8cce918 commit 4972401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export function DepositContainer() {
} else if (readApprovalResult || selectedAsset.L1symbol === 'ETH') {
depositDisabled =
parseFloat(depositAmount) <= 0 ||
parseFloat(depositAmount) >= parseFloat(L1Balance?.formatted ?? '0') ||
parseFloat(depositAmount) > parseFloat(L1Balance?.formatted ?? '0') ||
depositAmount === '' ||
(isSmartContractWallet && !isAddress(depositTo ?? '')) ||
!isPermittedToBridge;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export function WithdrawContainer() {
} else {
withdrawDisabled =
parseFloat(withdrawAmount) <= 0 ||
parseFloat(withdrawAmount) >= parseFloat(L2Balance?.formatted ?? '0') ||
parseFloat(withdrawAmount) > parseFloat(L2Balance?.formatted ?? '0') ||
withdrawAmount === '' ||
(isSmartContractWallet && !isAddress(withdrawTo ?? '')) ||
!isPermittedToBridge;
Expand Down

0 comments on commit 4972401

Please sign in to comment.