-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
App: preferred approval method (#714)
- Add `preferredApproveMethod` to the stored state (`"permit"`, `"approve-amount"` or `"approve-infinite"`). - Add `clearError()` to the object returned by `useTransactionFlow()` (this is used to clear the error when users change their preferred approve method). - `TransactionStatus` now supports an option to show the preferred approve method selector, which can include the permit or not. This option allows `TransactionStatus` to provide a permission mode, replacing `PermissionStatus`. - The tx link is now fixed for Safe accounts and point to the Safe app. - Add approval method selector to the stakeDeposit tx flow: - Group the different approve steps into one, handling all the approval methods (including infinite which is new). - Allow users to change their preferred approval method. - When a Safe account is detected, only allow tx-based approvals. - Add approval method selector to non-permit flows: - Open borrow - Update borrow - Open leverage - Update leverage - Close loan - Dropdown: fully customizable button + popup position.
- Loading branch information
Showing
10 changed files
with
458 additions
and
186 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
Oops, something went wrong.